Cloudwatch eventbus policy failed to create stack
See original GitHub issueHave tried to create a eventbuspolicy through the cdk module but the stack is failed with the “Internal Failure” message while creating changeset for the first time.
When the cdk deploy the stack its trying to create a changeset however there is no stack exist on the same stack name. Because of this, the stack creation is failed and throwing the “Internal Failure” error. I have confirmed this issue with AWS Cloudformation team.
Can you have a look and let me know how to fix this issue.
import cdk = require('@aws-cdk/cdk');
import events = require('@aws-cdk/aws-events');
export class EventBusPolicyStack extends cdk.Stack {
constructor(parent: cdk.App, name: string , organizationId: string,props?: cdk.StackProps){
super(parent,name,props)
new events.CfnEventBusPolicy(this,"test",{
action: 'events:PutEvents',
principal: '*',
statementId: "default",
condition: {
type: "StringEquals",
key: "aws:PrincipalOrgID",
value: organizationId
}
})
}
}
Error:
EventBusPolicyStack
EventBusPolicyStack: deploying...
EventBusPolicyStack: creating CloudFormation changeset...
❌ EventBusPolicyStack failed: Error: Failed to create ChangeSet CDK-7ea91d54-95db-473e-bc89 on EventBusPolicyStack: FAILED, Internal Failure
Failed to create ChangeSet CDK-7ea91d54-95db-473e-bc89 on EventBusPolicyStack: FAILED, Internal Failure
ERROR Tue, Feb 19, 2019 11:42:59 AM -- Failed to execute bootstrap.js, so exiting the app
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:13 (8 by maintainers)
Top Results From Across the Web
AWS::Events::EventBusPolicy - AWS CloudFormation
Amazon EventBridge (CloudWatch Events) rules in your account are triggered by these events arriving to an event bus in your account.
Read more >AWS Event Bus fails to write logs to CloudWatch on a custom ...
You can't write to CloudWatch Logs (CWL) using your WebLogsEventBusLoggingRole role. As AWS docs explain, you have to use CWL resource-based ...
Read more >EventBridge to CloudWatch Logs - Serverless Land
This template creates an EventBridge event bus and rule that publishes matched events to CloudWatch Logs. In this example, the rule filters for...
Read more >Sending and Receiving an event through EventBridge with ...
Create a new event bus in the EventBridge console and name it as ... not able to monitor that failure event in SNS,...
Read more >"Already exists in stack" error when attempting to re-deploy a ...
I had the same issue. It was caused by an earlier development stage where I'd created my s3 bucket manually. Removing the s3...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Public reference: https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap/issues/156
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.