aws-cloudformation / cloudformation-coverage-roadmap

The AWS CloudFormation Public Coverage Roadmap
https://aws.amazon.com/cloudformation/
Creative Commons Attribution Share Alike 4.0 International
1.1k stars 53 forks source link

AWS::Events::EventBusPolicy - Policy shown in CloudFormation but missing in the EventBus resource #2074

Open cmaster11 opened 1 week ago

cmaster11 commented 1 week ago

Name of the resource

AWS::Events::EventBusPolicy

Resource Name

No response

Issue Description

Hi, I witnessed an odd behavior when deploying an EventBus with an attached policy.

I cannot reproduce the issue, but I'm reporting it because it happened to our production system, and I have no explanation.

The issue is:

Running a CDK diff showed no changes to the AWS::Events::EventBusPolicy object, and when running a drift check, no changes were reported. Also, no policy was listed when fetching the EventBus object via the describe API call.

All that was returned in the description API call was:

{
    "Name": "my--awseventsbus",
    "Arn": "arn:aws:events:us-east-2:xxxxxxxxx:event-bus/my--awseventsbus"
}

When I then updated the policy and altered a section of it, the diff correctly reported the change. On deployment, the policy was updated and shown in the AWS Console and the describe API call.

Expected Behavior

We expected the policy not to disappear.

Observed Behavior

The policy disappeared while still being listed in the CloudFormation stack.

Test Cases

I'm unable to reproduce the issue.

Other Details

No response