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

Fix aws_vpc_endpoint auto_accept failing on pending status #19059

Merged
merged 2 commits into from
Apr 22, 2021

Conversation

shedimon
Copy link
Contributor

@shedimon shedimon commented Apr 22, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment 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 pull request followers and do not help prioritize the request

Closes #14604

Release note for CHANGELOG:

resource/aws_vpc_endpoint: Fix auto_accept failing while waiting for the VPC Endpoint Connection acceptance

aws_vpc_endpoint waits for the accept of the connection to the VPC Endpoint Service. Before connection is accepted status is pendingAcceptance. However, after it is accepted it changes to the pending which is not accounted for in the stateConf. This PR fixes this issue by adding the pending state as expected Pending value.

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

@shedimon shedimon requested a review from a team as a code owner April 22, 2021 14:07
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/ec2 Issues and PRs that pertain to the ec2 service. labels Apr 22, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 22, 2021
@bflad bflad removed the needs-triage Waiting for first response or review from a maintainer. label Apr 22, 2021
@bflad bflad self-assigned this Apr 22, 2021
@bflad bflad added the bug Addresses a defect in current functionality. label Apr 22, 2021
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reference: https://docs.aws.amazon.com/vpc/latest/privatelink/vpce-interface.html#vpce-interface-lifecycle

Hi @shedimon 👋 Thank you very much for this fix. Looks good to me!

Output from acceptance testing:

--- FAIL: TestAccAWSVpcEndpoint_VpcEndpointType_GatewayLoadBalancer (110.98s) # https://github.com/hashicorp/terraform-provider-aws/issues/16657
--- PASS: TestAccAWSVpcEndpoint_disappears (33.95s)
--- PASS: TestAccAWSVpcEndpoint_gatewayBasic (36.88s)
--- PASS: TestAccAWSVpcEndpoint_gatewayPolicy (63.32s)
--- PASS: TestAccAWSVpcEndpoint_gatewayWithRouteTableAndPolicy (76.98s)
--- PASS: TestAccAWSVpcEndpoint_interfaceBasic (53.83s)
--- PASS: TestAccAWSVpcEndpoint_interfaceNonAWSServiceAcceptOnCreate (266.51s)
--- PASS: TestAccAWSVpcEndpoint_interfaceNonAWSServiceAcceptOnUpdate (278.35s)
--- PASS: TestAccAWSVpcEndpoint_interfaceWithSubnetAndSecurityGroup (340.47s)
--- PASS: TestAccAWSVpcEndpoint_tags (87.33s)

@bflad bflad merged commit fda00b6 into hashicorp:main Apr 22, 2021
@github-actions github-actions bot added this to the v3.38.0 milestone Apr 22, 2021
@shedimon shedimon deleted the fix-aws-vpc-endpoint-autoaccept branch April 22, 2021 18:57
@ghost
Copy link

ghost commented Apr 30, 2021

This has been released in version 3.38.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!

@github-actions
Copy link

github-actions bot commented Jun 1, 2021

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 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. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_vpc_endpoint does not autoaccept
2 participants