Multiple options for tagging EBS volumes attached to auto scaled EC2 instances.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lambda
user-data
.gitignore
LICENSE
README.md

README.md

AWS Auto Scaling Group EBS Tagging

EC2 instances created by an auto scaling group can be tagged, but the Elastic Block Store (EBS) volumes do not inherit those tags. This repository contains multiple solutions for tagging EBS volumes attached to auto scaled EC2 instances. Each solution includes Terraform code to create an AWS launch configuration and auto scaling group to demonstrate the solution.

  • Use user data running in auto scaled EC2 instances to tag EBS volumes.
  • Use a Lambda function to tag EBS volumes of new auto scaled EC2 instances.