Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provider/aws: Refresh state on Directory Service not found (#6294)
When a directory service was not found, Terraform was panicking due to `dir := out.DirectoryDescriptions[0]`. The AWS API doesn't throw an Error in this case. IT just return s0 results. Therefore, we should check for 0 results in the return and remove the directory from the state
- Loading branch information