Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,44 @@

import software.amazon.awscdk.core.App;
import software.amazon.awscdk.core.Environment;
import software.amazon.awscdk.core.StackProps;

import java.util.Arrays;

public class %name.PascalCased%App {
public static void main(final String[] args) {
App app = new App();

%name.PascalCased%Stack.Builder.create(app, "%name.PascalCased%Stack")
// 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.
// 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.
new %name.PascalCased%Stack(app, "%name.PascalCased%Stack");

// Uncomment the next block to specialize this stack for the AWS Account
// and Region that are implied by the current CLI configuration.
/*
// Replace the above stack intialization with the following to specialize
// this stack for the AWS Account and Region that are implied by the current
// CLI configuration.
/*
new %name.PascalCased%Stack(app, "%name.PascalCased%Stack", StackProps.builder()
.env(Environment.builder()
.account(System.getenv("CDK_DEFAULT_ACCOUNT"))
.region(System.getenv("CDK_DEFAULT_REGION"))
.build())
*/
.build());
*/

// Uncomment the next block if you know exactly what Account and Region you
// want to deploy the stack to.
/*
// Replace the above stack initialization with the following if you know exactly
// what Account and Region you want to deploy the stack to.
/*
new %name.PascalCased%Stack(app, "%name.PascalCased%Stack", StackProps.builder()
.env(Environment.builder()
.account("123456789012")
.region("us-east-1")
.build())
*/

// For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
.build();
.build());
*/

// For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html

app.synth();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,36 @@ public class %name.PascalCased%App {
public static void main(final String[] args) {
App app = new App();

%name.PascalCased%Stack.Builder.create(app, "%name.PascalCased%Stack")
// 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 block to specialize this stack for the AWS Account
// and Region that are implied by the current CLI configuration.
/*
// 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.
new %name.PascalCased%Stack(app, "%name.PascalCased%Stack");

// Replace the above stack intialization with the following to specialize
// this stack for the AWS Account and Region that are implied by the current
// CLI configuration.
/*
new %name.PascalCased%Stack(app, "%name.PascalCased%Stack", StackProps.builder()
.env(Environment.builder()
.account(System.getenv("CDK_DEFAULT_ACCOUNT"))
.region(System.getenv("CDK_DEFAULT_REGION"))
.build())
*/
.build());
*/

// Uncomment the next block if you know exactly what Account and Region you
// want to deploy the stack to.
/*
// Replace the above stack initialization with the following if you know exactly
// what Account and Region you want to deploy the stack to.
/*
new %name.PascalCased%Stack(app, "%name.PascalCased%Stack", StackProps.builder()
.env(Environment.builder()
.account("123456789012")
.region("us-east-1")
.build())
*/

// For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
.build();
.build());
*/

// For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html

app.synth();
}
Expand Down