This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-config.html | |
| version = 0.1 | |
| # https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-build.html | |
| [default.build.parameters] | |
| parallel = true | |
| profile = "hkm" | |
| region = "ap-south-1" | |
| # https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-local-invoke.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # stop running this script if any command fails | |
| set -e | |
| echo Fetching instances tagged with Upgrade = Pending... | |
| INSTANCES=$(aws ec2 describe-instances \ | |
| --filters "Name=tag:Upgrade,Values=Pending" \ | |
| --output json \ |