I am creating an ec2-instance with the custom AMI that has 2 volumes. I want to give separate names/tags to both of the volumes like
vol-lab-cam-web-aue1-sda1 to the root volume and vol-lab-cam-web-aue1-sdb to the other volume using terraform.
I can only see a volume_tags option in terraform docs. Is there any workaround for doing this ?? My sample code is below
resource "aws_instance" "web" {
ami = "ami-0e6f18d5546ceec3d"
instance_type = "t2.micro"
volume_tags = {
Name = "vol-lab-cam-web01-aue1a-sda1"
}
tags = {
Name = "HelloWorld"
}
}
Following is the Screenshot of what i get using this sdb