Skip to content

Instantly share code, notes, and snippets.

View cauealvesbraz's full-sized avatar
🦉
I may be slow to respond.

Cauê cauealvesbraz

🦉
I may be slow to respond.
  • Rio de Janeiro - Brazil
  • 22:14 (UTC -03:00)
View GitHub Profile
@cauealvesbraz
cauealvesbraz / aws-ec2-find-unused-security-groups-by-region.sh
Last active October 7, 2022 09:37
AWS EC2: Find unused security groups by region
#!/bin/bash
# exit when the command fails
set -o errexit;
# exit when try to use undeclared var
set -o nounset;
region=us-east-1
@cauealvesbraz
cauealvesbraz / aws-cli-snippets.md
Last active January 31, 2020 00:47
✨ AWS Command Line Interface (CLI) snippets to make life easier

AWS Command Line Interface (CLI) snippets

@cauealvesbraz
cauealvesbraz / aws-iam-get-username-by-access-key.bash
Created January 5, 2019 18:10
AWS IAM Get UserName by Access Key Id
#!/bin/bash
# exit when the command fails
set -o errexit;
# exit when try to use undeclared var
set -o nounset;
accessKeyToSearch=${1?"Usage: bash $0 AccessKeyId"}