-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Issue #2174 Check that InternetGateway exists before returning from creation #6105
Conversation
…ng from creation Fix some random InvalidInternetGatewayID.NotFound errors
@@ -50,6 +50,27 @@ func resourceAwsInternetGatewayCreate(d *schema.ResourceData, meta interface{}) | |||
return err | |||
} | |||
|
|||
resource.Retry(5*time.Minute, func() *resource.RetryError { | |||
_, err := conn.DescribeInternetGateways(&ec2.DescribeInternetGatewaysInput{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The response here should be able to tell us something useful about the newly created Internet Gateway, I'm not sure we should ignore it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just copied it from https://github.com/hashicorp/terraform/blob/master/builtin/providers/aws/resource_aws_api_gateway_resource.go#L132
Not sure it is useful, other than waiting for consistency in AWS
Hey @carlossg thanks for the PR. Do you think we could re-use the |
@catsby something like that ? |
LGTM, and the acceptance tests pass, thanks! |
…ng from creation (hashicorp#6105) * Issue hashicorp#2174 Check that InternetGateway exists before returning from creation Fix some random InvalidInternetGatewayID.NotFound errors * Issue hashicorp#2174 Reuse IGStateRefreshFunc * Issue hashicorp#2174 Need to wait for creation before setting tags
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Fix #2174 some random InvalidInternetGatewayID.NotFound errors, seems to happen during attachment, right after creation
The errors look like