Your team has just moved from their Jenkins setup to using the AWS Code Pipeline service in AWS.
They have a requirement to ensure triggers are in place during various stages in the pipeline to take actions based on those triggers.
Which of the following can help you achieve this?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - A.
The AWS Documentation mentions the following.
Amazon CloudWatch Events is a web service that monitors your AWS resources and the applications you run on AWS.
You can use Amazon CloudWatch Events to detect and react to changes in the state of a pipeline, stage, or action.
Then, based on the rules you create, CloudWatch Events invokes one or more target actions when a pipeline, stage, or action enters the state you specify in a rule.
Depending on the type of state change, you might want to send notifications, capture state information, take corrective action, initiate events, or take other actions.
Option B is incorrect since this service is used to monitor configuration changes.
Option C is incorrect since this service is used for API monitoring.
Option D is incorrect since this service is used to give recommendations.
For more information on Cloudwatch events and Code Pipeline, please refer to the below URL-
https://docs.aws.amazon.com/codepipeline/latest/userguide/detect-state-changes-cloudwatch-events.htmlThe correct answer for this question is A. AWS Cloudwatch Events.
AWS CodePipeline is a fully managed continuous delivery service that helps you automate your release pipelines for fast and reliable application and infrastructure updates. AWS CodePipeline can help you deliver your application or infrastructure updates to production faster and more reliably. It models, visualizes, and automates the steps required to release your software.
AWS CodePipeline allows you to define a series of stages, such as source, build, test, and deploy, which are used to build and release your software. Each stage is composed of one or more actions. Actions are the tasks that AWS CodePipeline performs on your behalf, such as retrieving your application source code, building your application, or deploying your application to production.
AWS CodePipeline integrates with several other AWS services to provide a complete solution for continuous delivery. AWS CodePipeline can use AWS CodeBuild for building and testing your application, AWS CodeDeploy for deploying your application to production, and AWS CloudFormation for creating and managing your infrastructure.
In order to ensure triggers are in place during various stages in the pipeline to take actions based on those triggers, AWS Cloudwatch Events is the right service to use. AWS CloudWatch Events delivers a near real-time stream of system events that describe changes to AWS resources. Using simple rules, you can match events and route them to one or more target functions or streams.
AWS CloudWatch Events allow you to create custom rules that match events and route them to targets like AWS Lambda functions, Amazon SNS topics, and AWS Step Functions state machines. You can use CloudWatch Events to detect and respond to changes in your AWS resources, including AWS CodePipeline, AWS CodeBuild, AWS CodeDeploy, and AWS CloudFormation.
AWS Config is a service that enables you to assess, audit, and evaluate the configurations of your AWS resources. AWS Config provides a detailed view of the configuration of AWS resources and their relationships to other resources in your environment. However, it is not suitable for triggering actions in AWS CodePipeline.
AWS CloudTrail is a service that enables you to log, monitor, and retain account activity related to actions taken in your AWS account. AWS CloudTrail provides visibility into user activity, resource changes, and API calls made in your AWS account. However, it is not suitable for triggering actions in AWS CodePipeline.
AWS Trusted Advisor is a service that helps you optimize your AWS infrastructure and improve your security posture. AWS Trusted Advisor provides guidance to help you optimize costs, improve performance, and enhance security in your AWS environment. However, it is not suitable for triggering actions in AWS CodePipeline.