Monitoring deployments with Amazon SNS event notifications (original) (raw)

You can add triggers to a CodeDeploy deployment group to receive notifications about events related to deployments or instances in that deployment group. These notifications are sent to recipients who are subscribed to an Amazon SNS topic you have made part of the trigger's action.

You can receive notifications for CodeDeploy events in SMS messages or email messages. You can also use the JSON data that is created when a specified event occurs in other ways, such as sending messages to Amazon SQS queues or invoking a function in AWS Lambda. For a look at the structure of the JSON data provided for deployment and instance triggers, see JSON data formats for CodeDeploy triggers.

You might choose to use triggers to receive notifications if:

You can create up to 10 triggers for each CodeDeploy deployment group, for any of the following event types.

Deployment events Instance events
Success Failure Started Stopped Rollback Ready¹ All deployment events Success Failure Started Ready¹ All instance events
¹Applies to blue/green deployments only. Indicates that the latest application revision has been installed on instances in a replacement environment and traffic from the original environment can now be rerouted behind a load balancer. For more information see Working with deployments in CodeDeploy.
Topics

Monitoring deployments with AWS CloudTrail

Grant Amazon SNS permissions to a service role

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.