We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c5743e commit 6fcfdb3Copy full SHA for 6fcfdb3
test/cdk-basic/deploy-yaml.sh
@@ -1,5 +1,5 @@
1
# 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
+npx cdk synth --no-notices -c environment=test CdkbasicStack > CdkbasicStack.yaml
3
4
# Add a dummy resource to the template to force a change in the stack
5
awk '
@@ -12,7 +12,9 @@ awk '
12
next
13
}
14
{ print }
15
-' CdkbasicStack.yaml > template.patched.yaml && mv template.patched.yaml CdkbasicStack.yaml
+' CdkbasicStack.yaml > template.patched.yaml
16
+
17
+awk 'f{print} /^Resources:/ {f=1; print}' template.patched.yaml > CdkbasicStack.yaml
18
19
echo "----------------------------------------"
20
0 commit comments