resource/aws_cloudwatch_event_permission: arn: invalid prefix Error #16318
Labels
bug
Addresses a defect in current functionality.
regression
Pertains to a degraded workflow resulting from an upstream patch or internal enhancement.
service/cloudwatch
Issues and PRs that pertain to the cloudwatch service.
upstream
Addresses functionality related to the cloud provider.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
Terraform resources reads policy without error.
Actual Behavior
Starting earlier this week, the EventBridge API is returning the policy principal with just an account ID, rather than the root account ARN as has done for the last 3 years. This generates an error in our read logic for the resource, since it is assuming that it will receive an ARN:
In addition to supporting both field values in the read logic, the error message there should be clarified to denote what principal value is trying to parse as an ARN.
Steps to Reproduce
TF_ACC=1 go test -parallel=20 -run='TestAccAWSCloudWatchEventPermission_' -timeout=4h -v
References
DescribeEventBus
API ReferenceThe text was updated successfully, but these errors were encountered: