File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 11# This script is used to deploy the CDK stack using a YAML template.
2- npx cdk synth --no-notices - c environment=test CdkbasicStack > CdkbasicStack.yaml
2+ npx cdk synth -c environment=test CdkbasicStack > CdkbasicStack.yaml
33
44# Add a dummy resource to the template to force a change in the stack
55awk '
1414 { print }
1515' CdkbasicStack.yaml > template.patched.yaml && mv template.patched.yaml CdkbasicStack.yaml
1616
17+ echo " ----------------------------------------"
18+
19+ # Show the generated template
20+ cat CdkbasicStack.yaml
21+
22+ echo " ----------------------------------------"
23+
24+ pip install --user yamllint
25+ yamllint CdkbasicStack.yaml
26+
1727aws cloudformation deploy --template-file CdkbasicStack.yaml --stack-name test-lld-cdk-basic --capabilities CAPABILITY_NAMED_IAM
You can’t perform that action at this time.
0 commit comments