MCPcopy Create free account
hub / github.com/aws-samples/aws-cdk-examples / env

Function env

go/lambda-cron/lambda-cron.go:57–80  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

55// env determines the AWS environment (account+region) in which our stack is to
56// be deployed. For more information see: https://docs.aws.amazon.com/cdk/latest/guide/environments.html
57func env() *awscdk.Environment {
58 // If unspecified, this stack will be "environment-agnostic".
59 // Account/Region-dependent features and context lookups will not work, but a
60 // single synthesized template can be deployed anywhere.
61 //---------------------------------------------------------------------------
62 return nil
63
64 // Uncomment if you know exactly what account and region you want to deploy
65 // the stack to. This is the recommendation for production stacks.
66 //---------------------------------------------------------------------------
67 // return &awscdk.Environment{
68 // Account: jsii.String("123456789012"),
69 // Region: jsii.String("us-east-1"),
70 // }
71
72 // Uncomment to specialize this stack for the AWS Account and Region that are
73 // implied by the current CLI configuration. This is recommended for dev
74 // stacks.
75 //---------------------------------------------------------------------------
76 // return &awscdk.Environment{
77 // Account: jsii.String(os.Getenv("CDK_DEFAULT_ACCOUNT")),
78 // Region: jsii.String(os.Getenv("CDK_DEFAULT_REGION")),
79 // }
80}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected