Answers: <p>I believe, alternatively, you could use CloudTrail+CloudWatch rules, but then you will get CREATE_STACK events for <em>all</em> stacks
  Here is some information about that:</p>
  
  <p><a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-api-logging-cloudtrail.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-api-logging-cloudtrail.html</a>
  <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html</a></p>
  
  <p>And, of course, there's the option to put a lambda which listens on the notification topic and filters the needed events before sending the email.</p>
  
Answers: CC BY-SA 4.0
Answers: 2018-12-09T17:20:38.777Z
Answers: 2018-12-09T17:20:38.777Z
Answers: Nune Isabekyan
Body: <p>I am creating a CF stack;</p>
  
  <p>I have been using the <code>--notification-arns</code> flag of <code>aws cloudformaction create-stack</code> to send notifications to an email topic; however this produces a huge amount of spam, given that it records <strong>every</strong> <code>X_IN_PROGRESS</code> <strong>and</strong> <code>X_COMPLETE</code>, where <code>X=CREATE/DELETE</code> for <strong>every</strong> resource on the stack;</p>
  
  <p>I just want to get notifications for the <strong>stack</strong> <code>CREATE/DELETE</code> events.</p>
  
  <p>Is this possible?</p>
  
Tags: <amazon-web-services><aws-cloudformation>
Title: AWS Cloudformation: Callback only for CREATE_COMPLETE or CREATE_FAILED of entire stack
UserDisplayName: pkaramol
ThreadText: # AWS Cloudformation: Callback only for CREATE_COMPLETE or CREATE_FAILED of entire stack
  
  (Asked by: username_0 on 2018-11-21)
  
  I am creating a CF stack;
  
  I have been using the `--notification-arns` flag of `aws cloudformaction create-stack` to send notifications to an email topic; however this produces a huge amount of spam, given that it records **every** `X_IN_PROGRESS` **and** `X_COMPLETE`, where `X=CREATE/DELETE` for **every** resource on the stack;
  
  I just want to get notifications for the **stack** `CREATE/DELETE` events.
  
  Is this possible?
  
  **Tags:** amazon-web-services, aws-cloudformation
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-12-09. Score: 1
  
  I believe, alternatively, you could use CloudTrail+CloudWatch rules, but then you will get CREATE\_STACK events for *all* stacks
  Here is some information about that:
  
  <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-api-logging-cloudtrail.html>
  <https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html>
  
  And, of course, there's the option to put a lambda which listens on the notification topic and filters the needed events before sending the email.
  
  
  ---
  
  