Skip to content

Commit 6fcfdb3

Browse files
chore: debug
1 parent 1c5743e commit 6fcfdb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/cdk-basic/deploy-yaml.sh

Lines changed: 4 additions & 2 deletions
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 1> CdkbasicStack.yaml 2> cdk-synth.log
2+
npx cdk synth --no-notices -c environment=test CdkbasicStack > CdkbasicStack.yaml
33

44
# Add a dummy resource to the template to force a change in the stack
55
awk '
@@ -12,7 +12,9 @@ awk '
1212
next
1313
}
1414
{ print }
15-
' CdkbasicStack.yaml > template.patched.yaml && mv template.patched.yaml CdkbasicStack.yaml
15+
' CdkbasicStack.yaml > template.patched.yaml
16+
17+
awk 'f{print} /^Resources:/ {f=1; print}' template.patched.yaml > CdkbasicStack.yaml
1618

1719
echo "----------------------------------------"
1820

0 commit comments

Comments
 (0)