Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/aws_route: SetId before WaitRouteReady
When the route's wait-for-creation operation times out, its state is leaked as `d.SetId(...)` is called after the `WaitRouteReady(...)`. So, the next time the configuration is applied, the Terraform engine tries to create the same route again, getting duplication error from AWS. Call `d.SetId(...)` before `WaitRouteReady(...)`. Fixes: hashicorp#23827
- Loading branch information