-
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
Superfluous call to ModifyNetworkInterfaceAttribute #3399
Comments
More info -- it calls that action after getting the describe back showing the networkInterface setup with the same security-groups
heavily redacted |
Hi! I have the exact same issue. The workaround has consisted of calling
|
@hmalphettes Unfortunately that won't work for me because when this errors, the volume_attachment I have fails and when I run it twice, the ebs volume doesn't mount in time for the setup to succeed. I feel like this https://github.com/terraform-providers/terraform-provider-aws/blob/3cff28ef3f7ad804393cf1b8e6b937a7f25cb31b/aws/resource_aws_instance.go#L917 |
Tested locally and seemed to solve the issue |
@brettahale Much appreciated. |
This has been released in version 1.10.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
2018/02/07 18:40:22 [INFO] Modifying vpc_security_group_ids on Instance “i-xxxxxxxxxx”
2018/02/07 18:40:23 [DEBUG] [aws-sdk-go] DEBUG: Request ec2/ModifyNetworkInterfaceAttribute
Expected Behavior
I'm not sure why these are getting called. I wouldn't expect these. It feels like a race condition.
Actual Behavior
Given our ACLs we cannot do anything using the permission ec2/ModifyNetworkInterfaceAttribute and the TF job will fail. However, the instance gets created and works fine. Since the modifyNetworkAttribute action returns 403, I would expect the instance to be improperly configured but it seems to have no affect on the outcome. So why is that call needed? When I run this with volume attachments, ebs_volumes and other configs etc, since the job fails, I can't create all the resources I need.
Steps to Reproduce
terraform apply
Important Factoids
The text was updated successfully, but these errors were encountered: