Skip to content

Commit

Permalink
Merge pull request #20265 from obourdon/fix-20216
Browse files Browse the repository at this point in the history
Fix for issue #20216
  • Loading branch information
ewbankkit committed Jul 21, 2021
2 parents ef6fe3a + 4eb7d60 commit 8862a60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/20265.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
aws/resource_aws_route_table_association: Correctly handle `associated` as a pending state when waiting for deletion of an association
```
2 changes: 1 addition & 1 deletion aws/internal/service/ec2/waiter/waiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func RouteTableAssociationCreated(conn *ec2.EC2, id string) (*ec2.RouteTableAsso

func RouteTableAssociationDeleted(conn *ec2.EC2, id string) (*ec2.RouteTableAssociationState, error) {
stateConf := &resource.StateChangeConf{
Pending: []string{ec2.RouteTableAssociationStateCodeDisassociating},
Pending: []string{ec2.RouteTableAssociationStateCodeDisassociating, ec2.RouteTableAssociationStateCodeAssociated},
Target: []string{},
Refresh: RouteTableAssociationState(conn, id),
Timeout: RouteTableAssociationDeletedTimeout,
Expand Down

0 comments on commit 8862a60

Please sign in to comment.