terraform-aws-modules / terraform-aws-ec2-instance

Terraform module to create AWS EC2 instance(s) resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/ec2-instance/aws
Apache License 2.0
754 stars 1.87k forks source link

Ability to tag root and ebs block #261

Closed stecog closed 2 years ago

stecog commented 2 years ago

Is your request related to a new offering from AWS?

No

Is your request related to a problem? Please describe.

I need tag both root block device and ebs device, if I set enable_volume_tags to false i can tag only root block devices, if set t true I cannot tag root block devices, is there a way to do this or is it a limitation?

Describe the solution you'd like.

Ideally it could be so:

root_block_device = [
    {
      encrypted   = false
      volume_type = "gp3"
      volume_size = 15
      throughput  = 150
      tags = {
        Name = "hd-root"
        terraform = "true"
        user_type = "ebs"
      }
    },
  ]
  ebs_block_device = [
    {
      encrypted   = false
      device_name = "/dev/sdf"
      volume_type = "gp3"
      volume_size = 50
      throughput  = 150
      tags = {
        Name = "hd-data"
        terraform = "true"
        user_type = "ebs"
      }
    }
  ]

Thanks for your work!

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 2 years ago

This issue was automatically closed because of stale in 10 days

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.