In this blog, we will create a script in AWS Lambda which will help viewer request points to your root URL (http://www.example.com) instead of to a specific object in your distribution (http://www.example.com/index.html). Note: It will help mainly in Hugo and other Serverless website hosting on AWS environment. Lets …
Read MoreToday we will Learn "How to create an AWS RDS Snapshot using Lambda and Cloudwatch". So that we can automate the AWS RDS Snapshot creation process as per our requirement. Please follow the below steps to achieve this. Step 1: Create IAM policy for an IAM Role. Copy the below policy and paste it in your IAM policy. 1{ 2 …
Read MoreToday we will Learn "How to delete an AWS RDS Snapshot using Lambda and Cloudwatch". So that we can automate the AWS RDS Snapshot deletion process as per our requirement. Please follow the below steps to achieve this. Step 1: Create IAM policy for an IAM Role. Copy the below policy and paste it in your IAM policy. 1{ 2 …
Read MoreSometimes you need to find the servers state of all servers launched in your AWS Account. If you have only one region and few servers, you can get these details from AWS console very easily but if you have multiples server in multiple regions, then this task may create a problem. You have to check each region …
Read MoreIn previous blog, We have learned "how to Automate EC2 AMI backup process". Today we will learn, how to delete old AWS Instance(EC2) AMI using Lambda and Cloudwatch with a retention period. So that we will not charged for old EC2 AMIs. Please follow the below steps to achieve this. Step 1: Create IAM policy for an IAM …
Read MoreToday we will learn, how to create an IAM Role for Lambda Function. Every lambda function need some permission for execution. So it's important to know how to create IAM Role for Lambda. To create IAM Role for Lambda, Please follow the below Steps: Step 1: Open AWS Console and Select IAM service. Step 2: Select IAM …
Read MoreToday we will create an AWS Instance(EC2) AMI backup using Lambda and Cloudwatch. So that we can automate the AMI creation process as per our requirement. Please follow the below steps to achieve this. Step 1: Create IAM policy for an IAM Role. Copy the below policy and paste it in your IAM policy. 1{ 2 "Version": …
Read MoreToday I will show you, how you can start and stop your AWS RDS instance using Lambda and Cloudwatch. Step 1: Create a Policy which has RDS, start-stop permission and has Cloudwatch permission. Create new Policy and paste the below policy in it: 1{ 2 "Version": "2012-10-17", 3 "Statement": [ 4 { 5 "Effect": "Allow", 6 …
Read More