From c2515bb8561997320cae9650ddd3e67b7bd1cad1 Mon Sep 17 00:00:00 2001 From: Jesse Brault Date: Thu, 8 Jan 2026 16:51:20 -0600 Subject: [PATCH] Set environment for app. --- bin/jb-api-aws.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/bin/jb-api-aws.ts b/bin/jb-api-aws.ts index 8058278..a5093a8 100644 --- a/bin/jb-api-aws.ts +++ b/bin/jb-api-aws.ts @@ -4,14 +4,11 @@ import { JbApiAwsStack } from '../lib/jb-api-aws-stack'; const app = new cdk.App(); new JbApiAwsStack(app, 'JbApiAwsStack', { - /* 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 + } });