-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[version 3.0.0] unsupported attribute network_interface_id on aws_instance resource #14431
Comments
Most definitely caused by 3586a1a#diff-28aade55afa0cda57279a9d35d523488. The error had already been bypassed on plan because the attribute is used in an output which I wrapped in a |
We see a very similar problem, that actually breaks in the
|
Hi folks 👋 Thank you for reporting this issue and apologies for the frustrating behavior. Something is certainly amiss with the physical removal of the attributes from the provider schema, but usually Terraform core handles these just fine. It would be very helpful if you all could provide the following information, so we can start troubleshooting this:
Hopefully with those outlined, we can figure out root cause. Relevant Terraform core logic triggering the error. |
|
In my case it's also because of an output. |
I have more info in #14458 but noting here for compactness. In my case
|
Issue is happening to me as well when going from aws provider version 2.70.0 to 3.0.0
Edit: And: |
Please note that I have filed a bug report upstream with Terraform core, where this error is being generated: hashicorp/terraform#25752 |
Just updated to v0.13 and the Terraform v0.13.0
Commands used:
Failure (multiple times for the same aws_instance resource):
Code snippet:
|
Hi folks 👋 A fix for this particular Terraform state handling issue was merged upstream in the Terraform CLI code and will release with Terraform CLI version 0.13.1 in the coming days. If you happen to have a reproducible case of this issue with only Terraform CLI 0.12.x, please create a new bug report issue in the hashicorp/terraform repository with all the template details and the teams will triage further. Thanks. |
Is there a workaround meanwhile?
|
@andresvia alas, you have to manually edit the state file to exclude the deprecated attributes for now, I think. That worked for us at least. |
More specifically, as described here: hashicorp/terraform#25752 (comment) |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Expected Behavior
terraform apply
should work as usualActual Behavior
Steps to Reproduce
terraform init
to download latest provider version (3.0.0)terraform apply
Important Factoids
plan
, onlyapply
The text was updated successfully, but these errors were encountered: