env determines the AWS environment (account+region) in which our stack is to be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.html
()
| 80 | // env determines the AWS environment (account+region) in which our stack is to |
| 81 | // be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.html |
| 82 | func env() *awscdk.Environment { |
| 83 | // If unspecified, this stack will be "environment-agnostic". |
| 84 | // Account/Region-dependent features and context lookups will not work, but a |
| 85 | // single synthesized template can be deployed anywhere. |
| 86 | //--------------------------------------------------------------------------- |
| 87 | return nil |
| 88 | |
| 89 | // Uncomment if you know exactly what account and region you want to deploy |
| 90 | // the stack to. This is the recommendation for production stacks. |
| 91 | //--------------------------------------------------------------------------- |
| 92 | // return &awscdk.Environment{ |
| 93 | // Account: jsii.String("123456789012"), |
| 94 | // Region: jsii.String("us-east-1"), |
| 95 | // } |
| 96 | |
| 97 | // Uncomment to specialize this stack for the AWS Account and Region that are |
| 98 | // implied by the current CLI configuration. This is recommended for dev |
| 99 | // stacks. |
| 100 | //--------------------------------------------------------------------------- |
| 101 | // return &awscdk.Environment{ |
| 102 | // Account: jsii.String(os.Getenv("CDK_DEFAULT_ACCOUNT")), |
| 103 | // Region: jsii.String(os.Getenv("CDK_DEFAULT_REGION")), |
| 104 | // } |
| 105 | } |