Skip to content

Commit 64088c7

Browse files
chore: debugging
1 parent 464950f commit 64088c7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/cdk-basic/deploy-yaml.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
55
awk '
@@ -14,4 +14,14 @@ awk '
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+
1727
aws cloudformation deploy --template-file CdkbasicStack.yaml --stack-name test-lld-cdk-basic --capabilities CAPABILITY_NAMED_IAM

0 commit comments

Comments
 (0)