You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After the merging of #187 for #186, we get "root_block_device.0.tags": conflicts with volume_tags when running terraform plan after running terratag.
To Reproduce
A minimal Terraform configuration reproducing the issue:
if there's volume_tags add tags to it
else
for each ebs_block_device add tags to it
add tags to the root_block_device (and create it if it does not exist)
This would mean that if there's no "volume_tags" in current terraform, nothing would be added to it.
Note this comment in the AWS terraform documentation: Do not use volume_tags if you plan to manage block device tags outside the aws_instance configuration, such as using tags in an aws_ebs_volume resource attached via aws_volume_attachment. Doing so will result in resource cycling and inconsistent behavior.
Describe the bug
After the merging of #187 for #186, we get
"root_block_device.0.tags": conflicts with volume_tags
when runningterraform plan
after running terratag.To Reproduce
A minimal Terraform configuration reproducing the issue:
run
Expected behavior
terraform plan
should add theterratag=yes
tag and the originalName=test
test to the ec2 root volumeScreenshots
We are getting the following error
Desktop (please complete the following information):
Additional context
The result tf file after running terratag is
Workaround
ditching the
root_block_device[0].tags
, and instead putting them asvolume_tags
The text was updated successfully, but these errors were encountered: