Skip to content

Instantly share code, notes, and snippets.

@srkiNZ84
Last active May 23, 2021 22:57
Show Gist options
  • Save srkiNZ84/f7c9afbf3d0c570a3b368ffbf0ce71f5 to your computer and use it in GitHub Desktop.
Save srkiNZ84/f7c9afbf3d0c570a3b368ffbf0ce71f5 to your computer and use it in GitHub Desktop.

Revisions

  1. srkiNZ84 revised this gist May 23, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion bash_snippets.md
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,6 @@

    ## Find AWS EC2 instance by id

    `aws --profile dev ec2 describe-instances | jq '.Reservations[].Instances[] | select(.InstanceId == "i-0abcdefe412345678")'`
    ```
    aws --profile dev ec2 describe-instances | jq '.Reservations[].Instances[] | select(.InstanceId == "i-0abcdefe412345678")'
    ```
  2. srkiNZ84 revised this gist May 23, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion bash_snippets.md
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,4 @@

    ## Find AWS EC2 instance by id

    `aws --profile dev ec2 describe-instances | jq '.Reservations[].Instances[] | select(.InstanceId == "i-0abcdefe412345678")'
    `aws --profile dev ec2 describe-instances | jq '.Reservations[].Instances[] | select(.InstanceId == "i-0abcdefe412345678")'`
  3. srkiNZ84 created this gist May 23, 2021.
    5 changes: 5 additions & 0 deletions bash_snippets.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Bash Snippets

    ## Find AWS EC2 instance by id

    `aws --profile dev ec2 describe-instances | jq '.Reservations[].Instances[] | select(.InstanceId == "i-0abcdefe412345678")'