Skip to content

1Strategy/lambda-untagged-instance-cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is an example of an AWS Lambda function (index.js) that would identify EC2 instances in the specified regions that are not tagged and will terminate them.

Required IAM Permissions

  • logs:CreateLogGroup
  • logs:CreateLogStream
  • logs:PutLogEvents
  • ec2:DescribeInstances
  • ec2:TerminateInstances

About

A Lambda function that terminates untagged instances.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published