From 1f8e6713b32262783c4134212b829061318005aa Mon Sep 17 00:00:00 2001 From: Richard Martin Date: Thu, 11 Apr 2024 10:27:42 -0400 Subject: [PATCH] Reducing maxAzs to 1, and fargate tasks to 1 --- bin/pipeline.ts | 52 ++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/bin/pipeline.ts b/bin/pipeline.ts index d6e3672..4f0c732 100644 --- a/bin/pipeline.ts +++ b/bin/pipeline.ts @@ -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();