[version_1.0]
The exercises in this course will have an associated charge in your AWS account. In this exercise, you will create the following resources:
This exercise includes instructions to delete all the resources that you created for this exercise.
Familiarize yourself with AWS CloudFormation pricing, Amazon SNS pricing, Amazon EventBridge pricing, and AWS CodePipeline pricing, and the AWS Free Tier.
In this exercise, you will monitor pipeline changes. You will create an SNS topic and an EventBridge rule. The rule will monitor the pipeline execution state change. If there are any state changes, it will notify you through email.
In this task, you use the same CloudFormation stack that you used in the previous course.
Download the following CloudFormation template: final_pipeline.yaml
In the AWS Management Console, choose Services, and search for and choose CloudFormation.
In the CloudFormation navigation pane, choose Stacks.
Choose Create stack and choose With new resources (standard).
In the Specify template page, select Upload a template file and select Choose file.
Upload the final_pipeline.yaml
file by opening the directory where you downloaded it, choosing the final_pipeline.yaml
file, and choosing Open.
Choose Next.
final-pipeline
final-pipeline
Choose Next.
Skip Configure stack options by choosing Next.
At the bottom of the Review final-pipeline page, select I acknowledge that AWS CloudFormation might create IAM resources with custom names and choose Create stack.
Creating the stack can take some time to complete. Allow the stack to finish before you continue to the next task.
In this task, you set up an SNS topic that will later be used as the target for your EventBridge rule.
Choose Services, search for and open Amazon SNS.
In the navigation pane, choose Topics and then choose Create topic.
pipeline-topic
Keep all other settings at their defaults and choose Create topic.
In the Subscriptions tab, choose Create subscription.
Choose Create subscription.
You will receive an email message for subscription confirmation.
In this task, you create the EventBridge rule that will be used to key on any CodePipeline changes. This rule will filter out those events, and then use the SNS topic that you created to send you an email message.
Search for and open EventBridge.
Under Events, choose Rules and then choose Create rule.
pipeline-rule
Choose Create.
In this task, you start a pipeline execution manually. CodePipeline will then run most recent version of the source through all stages and actions that are defined in the pipeline.
Search for and open CodePipeline.
From the Pipelines list, choose the final-pipeline
link.
In the final-pipeline page, choose Release change and then choose Release.
You will get an email notification about the pipeline’s state change.
In the email message, you should see a state change that’s similar to the following example:
And
In this task, you delete the AWS resources that you created for this exercise.