Skip to content

shreyasgaonkar/aws-cli-code-samples

Repository files navigation

AWS CLI code samples

A few examples of using AWS CLI for common use-cases dealing with few AWS services.

Lambda

  1. Hyperplane ENIs created by Lambda - lambda-created-enis.sh
  1. Lambda Provisioned Concurrency finder - lambda-provisioned-concurrency-finder.sh

CloudFront

  1. List all Alternate Domain names attached to all CloudFront Distribution - list-alternate-domain-names.sh

  2. List all Lambda@Edge functions attached to all CloudFront Distribution - list-lambda-at-edge-functions.sh

SNS

  1. Get SMS month to date spend in USD - sms_dashboard.sh

Additional Information

  • Refer to the individual .md files for additional information.

Built with

Missing Info / Bugs

  • 😰 Something broken? Open an issue with a few sample inputs where it breaks. Screenshots help!

  • More additional services/use-cases, open a new issue

Contributing

This is an iterative repository, I'll keep adding more sample codes for more use-cases as I come across them. I have tested all scripts using aws-cli/1.18.46 or above version.

  • Fork repo
  • Upgrade AWS CLI: $ pip install --upgrade awscli --user
  • Send your awesome 🙌 Pull Request with code/.md changes
  • Your PR gets merged ✅ and a shoutout 📢

Repo structure:

$ tree
.
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── cloudfront-samples
│   ├── list-alternate-domain-names
│   │   ├── README.md
│   │   └── list-alternate-domain-names.sh
│   └── list-lambda-at-edge-functions
│       ├── README.md
│       └── list-lambda-at-edge-functions.sh
├── lambda-samples
│   ├── lambda-created-enis
│   │   ├── README.md
│   │   └── lambda-created-enis.sh
│   └── lambda-using-an-eni
│       ├── README.md
│       └── lambda-created-enis.sh
└── sns-samples
    └── sms-dashboard
        ├── README.md
        └── sms-dashboard.sh

About

CLI examples of common AWS use-cases

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages