Skip to content

Commit

Permalink
resource/aws_vpc_endpoint: Fix auto_accept failing on pending status (#…
Browse files Browse the repository at this point in the history
…19059)

* Fix aws_vpc_endpoint auto_accept failing on pending status

* Adds changelog
  • Loading branch information
shedimon authored Apr 22, 2021
1 parent cd28d3f commit fda00b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/19059.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_vpc_endpoint: Fix auto_accept failing while waiting for the VPC Endpoint Connection acceptance
```
2 changes: 1 addition & 1 deletion aws/resource_aws_vpc_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ func vpcEndpointAccept(conn *ec2.EC2, vpceId, svcName string, timeout time.Durat
}

stateConf := &resource.StateChangeConf{
Pending: []string{"pendingAcceptance"},
Pending: []string{"pendingAcceptance", "pending"},
Target: []string{"available"},
Refresh: vpcEndpointStateRefresh(conn, vpceId),
Timeout: timeout,
Expand Down

0 comments on commit fda00b6

Please sign in to comment.