From e0a45c0c78f39feae2c4dcbdc5cb17e68209bfa5 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Wed, 20 Sep 2023 14:02:59 +1200 Subject: [PATCH] feat: Specify stack environment --- bin/hydro-survey.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/bin/hydro-survey.ts b/bin/hydro-survey.ts index 9b6a30a..6e3fa5c 100644 --- a/bin/hydro-survey.ts +++ b/bin/hydro-survey.ts @@ -7,14 +7,5 @@ import { HydroSurveyStack } from '../lib/hydro-survey-stack'; const app = new App(); new HydroSurveyStack(app, 'HydroSurveyStack', { - /* If you don't specify 'env', this stack will be environment-agnostic. - * Account/Region-dependent features and context lookups will not work, - * but a single synthesized template can be deployed anywhere. */ - /* Uncomment the next line to specialize this stack for the AWS Account - * and Region that are implied by the current CLI configuration. */ - // env: { account: process.env.CDK_DEFAULT_ACCOUNT, region: process.env.CDK_DEFAULT_REGION }, - /* Uncomment the next line if you know exactly what Account and Region you - * want to deploy the stack to. */ - // env: { account: '123456789012', region: 'us-east-1' }, - /* For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html */ + env: { account: process.env['CDK_DEFAULT_ACCOUNT'], region: process.env['CDK_DEFAULT_REGION'] }, });