aws_cloudwatch_log_group creation intermittently fails with "already exists" error #18468
Labels
bug
Addresses a defect in current functionality.
service/cloudwatch
Issues and PRs that pertain to the cloudwatch service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
The debug output shows that the provider appeared to encounter an error while waiting for a response to the initial creation attempt. During an attempted retry, an "already exists" error was received. This is presumably because AWS actually did create the log group during the first try.
Expected Behavior
The apply should have succeeded, with the log group having been created successfully.
Actual Behavior
Normally, the expected behavior occurs. Intermittently, though, the log group was created in AWS but the apply failed with an error:
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: