Terraform AWS Provider Version
hashicorp/aws v4.0.0
I have an aws_spot_instance_request like this:
resource “aws_spot_instance_request” “test” {
ami = “{var.amitest}"
key_name = "{var.key}”
count = 5
spot_price = “{var.price}"
instance_type = "c5.18xlarge"
subnet_id = "{var.subnet}”
vpc_security_group_ids = [ “${var.securityGroup}” ]
}
tags {
Name = "server100${count.index}"
}
}
The tags are being applied only to the spot request itself, not to the underlying instance. How can I fix this?
Thanks!