Skip to content

Instantly share code, notes, and snippets.

@Tharwat96
Last active September 6, 2020 10:04
Show Gist options
  • Save Tharwat96/944e768eab9f67a3d387b53038c041a5 to your computer and use it in GitHub Desktop.
Save Tharwat96/944e768eab9f67a3d387b53038c041a5 to your computer and use it in GitHub Desktop.
aws cli useful commands
# describe ec2 instance
aws ec2 --region us-east-1 describe-instances --instance-ids i-xxxxxxxxxxx
# associate iam instance profile to running instance
aws ec2 associate-iam-instance-profile --instance-id i-xxxxxxxxxxx --iam-instance-profile Name=xxxxxxxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment