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.

SNS notifications on stack events

See original GitHub issue

❓ General Issue

I am playing around with different ways to hook into lifecycle events of Stacks / Components. Of course there is the AwsCustomResource or ProviderFramework way. While AwsCustomResource is only viable for a simple SDK calls, ProviderFramework offers a lot more but with more complexity involved.

Now i noticed notificationArns on Stack level. What i recall you can attach them via command line on deployment (not what i am looking for) or programatically via NestedStack Construct. I wonder why this requirement is in place? Why cant we add them on our main stacks? (i think you can only read them)

This way one could easily setup a topic and a consumer and one should be able to hook into those lifecycle events pretty easily.

proposed idea

Why not having a method like this on Stack construct:

let myStack = new MyStack(app,...);
myStack.addNotificationArns(...);

Not sure why this method is not available in the construct when at the end it will synth to AWS::CloudFormation::Stack

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:20
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
domfiecommented, Dec 22, 2020

AFAIK: Currently only possible through the cli: cdk deploy stackID --notification-arns='arn:aws:sns:{region}:{aws-id}:{sns-name}' (Replace the placeholders with your values)

On subsequent calls the arn can be omitted.

5reactions
logemanncommented, Jan 5, 2021

Thats why it would make up a good feature Request. Think should be part of the AWS CDK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Receive email alerts when AWS CloudFormation stacks enter ...
Set your AWS CloudFormation stack to send all notifications to the SNS topic that notifies the Lambda function. 1. Open the AWS CloudFormation ......
Read more >
Enable AWS CloudFormation Stack Notifications - Trend Micro
Ensure all your AWS CloudFormation stacks are using Simple Notification Service (AWS SNS) in order to receive notifications when an event ...
Read more >
How to send SNS notification after cloud formation is ...
To publish to an existing topic, you have to use stack options via "Advanced" section in the aws console as shown in the...
Read more >
AWS CloudFormation stack configured without SNS topic
Ensure AWS CloudFormation stacks are sending event notifications to an SNS topic · AWS CloudFormation stack configured without SNS topic · Description ·...
Read more >
How can I receive an email alert when my CloudFormation ...
How can I receive an email alert when my CloudFormation stack is in ROLLBACK_IN_PROGRESS state?
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