Skip to content
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

Error: Provider produced inconsistent result after apply - aws_network_interface_sg_attachment #18504

Closed
JustLeo opened this issue Mar 31, 2021 · 3 comments · Fixed by #18466
Closed
Assignees
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@JustLeo
Copy link

JustLeo commented Mar 31, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform v0.12.26

  • provider registry.terraform.io/hashicorp/aws v3.34.0

Affected Resource(s)

  • aws_network_interface_sg_attachment
  • aws_XXXXX

Terraform Configuration Files

resource "aws_network_interface_sg_attachment" "sg_kubernetes_attachment_awsnothtaikum02" {
   security_group_id    = aws_security_group.linux_kubernetes_sg1.id
   network_interface_id = aws_instance.awsnothtaikum02.primary_network_interface_id
}

Debug Output

Panic Output

Expected Behavior

Succesfully attach the SG

Actual Behavior

Error: Provider produced inconsistent result after apply

When applying changes to
aws_network_interface_sg_attachment.sg_kubernetes_attachment_awsnothtaikum02,
provider "registry.terraform.io/-/aws" produced an unexpected new value for
was present, but now absent.

This is a bug in the provider, which should be reported in the provider's own
issue tracker.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Mar 31, 2021
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. bug Addresses a defect in current functionality. labels Mar 31, 2021
@bflad bflad removed the needs-triage Waiting for first response or review from a maintainer. label Mar 31, 2021
@bflad bflad self-assigned this Mar 31, 2021
@bflad
Copy link
Contributor

bflad commented Mar 31, 2021

Hi @JustLeo 👋 Thank you for raising this and sorry you ran into trouble here. The fix for this error with the aws_network_interface_sg_attachment resource will be merging soon with #18466.

@ghost
Copy link

ghost commented Apr 1, 2021

This has been released in version 3.35.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented May 1, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
2 participants