Ravi Sir's Cards › AWS
Safe bash scripts
This revision card explains Safe bash scripts. A recipe card for AWS. It describes set -euo pipefail and AWS_PAGER="". The how-to section notes print account and region first.
Read card text
What this card says
Why do we need it?
A recipe card for AWS.
What is it?
set -euo pipefail and AWS_PAGER="".
How to do it
Print account and region first.
aws sts get-caller-identity
Example
--query + --output text for values.