AWS Waste Management Application
AWS Waste Management Application
Architect Diagram –
Step 1 - Create a lambda function that will delete the resources not utilized for more than 30 Days.
EC2 Instances: stopped for more than 30 days.
EBS Volumes: Check the last attached time to the instance.
Elastic IPs: Check if they have been associated with any instance.
S3 Buckets: Use the last-modified date of objects within the bucket to determine if they are unused.
RDS Instances: Check if the RDS instances have been in the stopped state for more than 30 days.
Step 3 – Update the below API Gateway CORS Configuration under the Header.
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,OPTIONS
Access-Control-Allow-Headers: Content-Type
Step 5 – Add the invoke URL in the client Application (AWS Cleanup Tool)
Prepared by – Atish Sonawane (linkedin.com/in/atish-sonawane)
Step 6 – Create an SNS Topic to Notify the user of the success/failure of the event.
Step 7 – Add the SNS topic to the destination of the lambda function
Step 10 - Give the required permission, and check the website is available on internet.
Step 11 – Resources that are not utilized for more than 1 day.
EC2 Instance
EBS Volume
Step 13 – You will get the successful message below the button
EC2 Instance
EBS Volume