Skip to content

Commit

Permalink
avoid buildspec yaml syntax issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cnfait committed Sep 24, 2024
1 parent 4607c1d commit 395ef62
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sdlf-cicd/nested-stacks/template-cicd-cfn-module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,14 @@ Resources:
pip3 install "cfn-lint<1"
pip3 install cloudformation-cli
- |-
[ -d "src" ] && cd src/
test -d "src" && cd src/
aws s3api get-object --bucket "$ARTIFACTS_BUCKET" --key sam-translate.py sam-translate.py
build:
commands:
- [ -d "src" ] && cd src/
- sam package --template-file ./template.yaml --s3-bucket "$ARTIFACTS_BUCKET" --s3-prefix sdlf --output-template-file template.yaml
- python3 sam-translate.py --template-file=template.yaml --output-template=translated-template.json
- |-
test -d "src" && cd src/
sam package --template-file ./template.yaml --s3-bucket "$ARTIFACTS_BUCKET" --s3-prefix sdlf --output-template-file template.yaml
python3 sam-translate.py --template-file=template.yaml --output-template=translated-template.json
- |-
CLOUDFORMATION_ENDPOINT_URL="https://cloudformation.$AWS_REGION.amazonaws.com"
SSM_ENDPOINT_URL="https://ssm.$AWS_REGION.amazonaws.com"
Expand Down

0 comments on commit 395ef62

Please sign in to comment.