1

Currently facing an issue about creating a notification rule for code pipeline

Resource handler returned message: "Invalid request provided: AWS::CodeStarNotifications::NotificationRule" (RequestToken: 4cf585ed-150e-78ee-6c23-d01870c1dbc4, HandlerErrorCode: InvalidRequest)

My problem is the same as in this StackOverflow post CDK Unable to Add CodeStarNotification to CodePipeline.

Suggested solutions focus on whether or not access policy on topic is set and this is all taken care in my case

{
  "Version": "2008-10-17",
  "Statement": [
    {
      "Sid": "AWSCodeStarNotifications_publish",
      "Effect": "Allow",
      "Principal": {
        "Service": "codestar-notifications.amazonaws.com"
      },
      "Action": "SNS:Publish",
      "Resource": "arn:aws:sns:us-east-1:123456789:PipelineNotifications"
    }
  ]
}

I am importing already existing topic in that stack, that topic already have properly configured access policy so I don’t really understand what’s the problem - tried several times but it never succeeds creating it and it fails.

cdk version 2.31.0

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Clara
  • 91
  • 2
  • 3

0 Answers0