Today I will show you, how you can restart your AWS ECS services using Lambda (Python) and Cloudwatch. Step 1: Create a Policy which has ECS services update 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": …
Read MoreIn this blog, we will create a script in AWS Lambda function which check the API status and send the mail to the recipient via AWS SES. Step 1: Open you AWS account. Step 2: Open IAM service console. Step 3: Create IAM policy for an IAM Role. Copy the below policy and paste it in your IAM policy. 1{ 2 "Version": …
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 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 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