question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cloudwatch eventbus policy failed to create stack

See original GitHub issue

Have 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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

0reactions
github-actions[bot]commented, Jun 3, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found