Last active
September 6, 2020 10:04
-
-
Save Tharwat96/944e768eab9f67a3d387b53038c041a5 to your computer and use it in GitHub Desktop.
aws cli useful commands
This file contains 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
# 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