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 write a python lambda code which will restart our ECS services. 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": "2012-10-17", 3 "Statement": [ 4 { 5 "Sid": "VisualEditor0", 6 "Effect": …
Read More