-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Adding tags to root_block_device in aws_instance caused Error: Provider produced inconsistent final plan #41225
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @hendolim 👋 Thank you for taking the time to raise this! While looking at this during triage, my instinct is that this is related to the use of the |
Thanks Justin, removing the Date tag seem to solve it for some instances but not for the others. This issue has been very challenging to reproduce consistently. Another thing worth mentioning is that I have been using the exact same resource definition and tags for linux machines, and they did not run into such issue. Although the initial tags updates were done a while back, using an earlier TF and AWS provider versions. But they do go through instance recreation very regularly since I have regular AMI updates, so the root block device creation has been working fine for a while. |
Upon further investigation, it seems this is only happening when updating volumes with no tags at all. It doesn't happen when creating a fresh volume or when updating a volume with some other existing tags. I wonder if not only the |
Terraform Core Version
1.9.8
AWS Provider Version
5.85.0
Affected Resource(s)
I added new tags in root_block_device for existing ec2 instances. They were applied correctly for some and not for the others.
Expected Behavior
TF should have applied successfully and added the tags to my instance.
Actual Behavior
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create an instance using the template above, but without the
tags
, under root_block_device.Now update the template by adding the tags, and apply. You will see the error. Note that I have not been able to reproduce this consistently
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: