Skip to content

Commit

Permalink
fix stack name for different node version test
Browse files Browse the repository at this point in the history
  • Loading branch information
aBurmeseDev committed Jan 8, 2025
1 parent a17b3d3 commit 55e7b66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ jobs:
run: |
npm install @aws-sdk/client-cloudformation
node -e 'require("@aws-sdk/client-cloudformation")'
NODE_VERSION="${{ matrix.node-version }}"
STACK_NAME="my-stack-node-$(echo "$NODE_VERSION" | sed 's/[^a-zA-Z0-9-]/-/g' | sed 's/^-//' | sed 's/-$//')"
aws cloudformation create-stack \
--stack-name my-stack-node-${{ matrix.node-version | replace('\.', '-') }} \
--stack-name "$STACK_NAME" \
--template-body '{"Resources": {"MyBucket": {"Type": "AWS::S3::Bucket", "Properties": {"BucketName": "sdk-node-repro"}}}}' \
--capabilities CAPABILITY_NAMED_IAM
env:
Expand Down

0 comments on commit 55e7b66

Please sign in to comment.