Deploy a CloudFormation stack
A deploy that is safe to repeat. CAPABILITY_NAMED_IAM is required when the template creates IAM roles
aws cloudformation deploy --template-file stack.yaml --stack-name <name> --capabilities CAPABILITY_NAMED_IAM --parameter-overrides Env=prod --no-fail-on-empty-changeset
- tool
- aws14 commands
More aws commands
-
aws ec2 describe-volumes --filters Name=status,Values=available --query 'length(Volumes[])' --output text --profile staging --region <id>Count unattached EBS volumes in one call with length(). --profile and --region set the scope
-
aws sts get-caller-identity --query '{acct:Account,arn:Arn}' --output tableCheck the active account, ARN and role. Run it before risky commands, not after
-
eval $(aws sts assume-role --role-arn <id> --role-session-name ops --query 'Credentials.[`AWS_ACCESS_KEY_ID=`+AccessKeyId,`AWS_SECRET_ACCESS_KEY=`+SecretAccessKey,`AWS_SESSION_TOKEN=`+SessionToken]' --output text | sed 's/^/export /')Assume an IAM role and put the temporary credentials into the shell environment in one step
-
aws ec2 describe-instances --filters Name=tag:Env,Values=prod Name=instance-state-name,Values=running --query 'Reservations[].Instances[].{id:InstanceId,ip:PrivateIpAddress,az:Placement.AvailabilityZone}' --output tableList running prod instances with ID, private IP and AZ using a JMESPath query
-
aws s3 sync ./ s3://<name>/ --delete --exclude '*.tmp' --exclude '.git/*' --size-onlyMirror a directory to a bucket. --delete removes objects that are gone locally. Note: --size-only compares only size, not timestamps