Skip to content

Instantly share code, notes, and snippets.

@Tharwat96
Last active September 6, 2020 10:04
Show Gist options
  • Select an option

  • Save Tharwat96/944e768eab9f67a3d387b53038c041a5 to your computer and use it in GitHub Desktop.

Select an option

Save Tharwat96/944e768eab9f67a3d387b53038c041a5 to your computer and use it in GitHub Desktop.

Revisions

  1. Tharwat96 revised this gist Sep 6, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion aws_commands.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # describe ec2 instance
    aws ec2 --region us-east-1 describe-instances --instance-ids i-0c604943aa8ffe2ad
    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
  2. Tharwat96 created this gist Sep 6, 2020.
    6 changes: 6 additions & 0 deletions aws_commands.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # describe ec2 instance
    aws ec2 --region us-east-1 describe-instances --instance-ids i-0c604943aa8ffe2ad

    # associate iam instance profile to running instance
    aws ec2 associate-iam-instance-profile --instance-id i-xxxxxxxxxxx --iam-instance-profile Name=xxxxxxxxx