Skip to content

Commit

Permalink
Reducing maxAzs to 1, and fargate tasks to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
richmar10 committed Apr 11, 2024
1 parent a2eba5f commit 1f8e671
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions bin/pipeline.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
import * as cdk from 'aws-cdk-lib';
import { AppStack, AppStackProps } from '../lib/app-stack';
import { SetupStack } from '../lib/setup-stack';
import * as cdk from "aws-cdk-lib";
import { AppStack, AppStackProps } from "../lib/app-stack";
import { SetupStack } from "../lib/setup-stack";

const prdAppStackProps: AppStackProps = {
env: {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: "us-east-1"
},
hostedZoneDomainName: "desire2learnvalence.com",
certificateDomain: "apitesttool.desire2learnvalence.com",
fargateDomainName: "apitesttool.desire2learnvalence.com",
elbLogTargetEnvironment: "prd",
imageTag: process.env.IMAGE_TAG
}
env: {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: "us-east-1",
},
hostedZoneDomainName: "desire2learnvalence.com",
certificateDomain: "apitesttool.desire2learnvalence.com",
fargateDomainName: "apitesttool.desire2learnvalence.com",
elbLogTargetEnvironment: "prd",
imageTag: process.env.IMAGE_TAG,
};

const devAppStackProps: AppStackProps = {
env: {
env: {
account: "111111111111",
region: "ca-central-1",
},
hostedZoneDomainName: "lti.dev.brightspace.com",
certificateDomain: "apitesttool.lti.dev.brightspace.com",
fargateDomainName: "apitesttool.lti.dev.brightspace.com",
elbLogTargetEnvironment: "dev",
imageTag: "test1"
}
region: "ca-central-1",
},
hostedZoneDomainName: "lti.dev.brightspace.com",
certificateDomain: "apitesttool.lti.dev.brightspace.com",
fargateDomainName: "apitesttool.lti.dev.brightspace.com",
elbLogTargetEnvironment: "dev",
imageTag: "test1",
};

const app = new cdk.App();

new SetupStack(app, "ApiTestToolSetupStack", prdAppStackProps );
new AppStack(app, "ApiTestToolAppStack", prdAppStackProps );
new SetupStack(app, "ApiTestToolSetupStack", prdAppStackProps);
new AppStack(app, "ApiTestToolAppStack", prdAppStackProps);

new SetupStack(app, "ApiTestToolSetupStack-Dev", devAppStackProps );
new AppStack(app, "ApiTestToolAppStack-Dev", devAppStackProps );
new SetupStack(app, "ApiTestToolSetupStack-Dev", devAppStackProps);
new AppStack(app, "ApiTestToolAppStack-Dev", devAppStackProps);

app.synth();

0 comments on commit 1f8e671

Please sign in to comment.