Home awsume-in-a-script
Post
Cancel

awsume-in-a-script

When using awsume within a launcher shell script, export the statements (via the -s switch) to a variable then execute that to set the session

1
2
3
4
5
for profile in dev uat live; do
  SETPROFILE=$(awsume -s $profile)
  $SETPROFILE
  python my-aws-script.py
done
This post is licensed under CC BY 4.0 by the author.