Get AWS IAM custom policies and action assigned to it using AWS lambda

Get AWS IAM custom policies and action assigned to it using AWS lambda

Greetings! When it comes to public cloud, access control is very important part in it. It is recommended to use roles for services then using crentials when using AWS lambda. Custom plocies are then very important and there mangement ver critical. You should be in control of what roles has what kind of access. This sctipt lists all your custom policies and actions assigned to it. You can find script here. Please note you will not get inline policies with this. Happy Coding!Read more …
Get all snapshots in your AWS environment using AWS lambda

Get all snapshots in your AWS environment using AWS lambda

Greetings! Managing snapshots is very critical and complex topic in any environment. You should keep a track of snapshots with their creation date. You should be aware when one snapshot should be deleted, as it would be consuming space. In this lambda script you can get consolidated report for all snapshots in your environment. I have excluded the snapshots which are copied from same or different zone. Those snapshots have volume id as vol-ffffffff. I think those should be managed separately but if you want to track those also you can simply remove…Read more …
Get all EC2 instances from all regions and store it in dynamodb

Get all EC2 instances from all regions and store it in dynamodb

Greetings! In AWS we have multiple regions, if you want to check resources or services of particular region you need to switch to that region first. This script will fetch EC2 instance name, ID and type from all regions. The script has two parts which I have divided into two functions. One functions collects all the information and second adds that to dynamodb. you can skip second part and save it in csv in S3 bucket. You can find script here. Happy Coding!Read more …
Use AWS Lex chatbot to start and stop the AWS instance

Use AWS Lex chatbot to start and stop the AWS instance

Greetings!! Technology is changing very rapidly now.  You can design, develop and make your application up and available within minutes(depends how quick you are at designing and coding). I came across LEX recently. It is very easy to create your chatbot within minutes. You can teach your chatbot and then integrate with other services to deliver the desired result. I have created a chatbot which helps you to start and stop AWS instance just by using chat. I have integrated this with Facebook chat, slack and twilio also. It is very easy. Let's…Read more …