Posts

Showing posts from March, 2024

AWS Code Pipeline - CI/CD Series Part 6

Image
  In this post, We will see how to add a manual approval for the code pipeline. The agenda is to get a mail notification and manual approval to trigger the code pipeline (Deployment) - CONTINOUS DELIVERY. We will use the SNS notification from the previous post. Open the pipeline and add a new stage where you want to implement the "Manual Approval". I am going to add a stage between CODE DEPLOY and CODE BUILD CODE BUILD -> MANUAL APPROVAL -> CODE DEPLOY. Click on "Add Stage". Name the stage and add "Action Group". There are lot of actions available. "Manual Approval" is one of the actions. Save the pipeline and "Release change". Once the code build is completed, it will trigger a mail notification with pipeline URL. Click on "Review" and "Approve" the pipeline. Now, we can see the pipeline completed.

AWS Code Pipeline - CI/CD Series Part 5

Image
 In this post, We will see how to add notifications to the pipeline. This would create an email alert on the selected event. This is nothing but adding SNS with AWS Code Pipeline. Click on the "PipeLine" and select "Notify". Give the notification name and select the type of notification you want. Select the events that need notifications. Select target as "SNS Topic" and topic name. Now, navigate to SNS topic and create a subscription.  Enter the mail ID and confirm the subscription. We are set with enabling notification. Let's go back to the pipeline and click on "Release Change" to rerun the pipeline. I got the notification on the pipeline is completed.

AWS Code Pipeline - CI/CD Series Part 4

Image
  AWS CodePipeline is a continuous delivery service provided by Amazon Web Services (AWS) that helps you automate the software release process for your applications. With AWS CodePipeline, you can model, visualize, and automate the different stages of your software delivery process, from building and testing to deploying and monitoring. It enables you to rapidly and reliably deliver features and updates to your customers while reducing the risk of errors and downtime. Code Pipeline = Code Commit + Code Build + Code Deploy  Start with creating a pipeline. Pipeline settings. I am selecting the version as "v1" and creating a new service role. Updating the pipeline with AWS Code Commit. Updating with AWS Code Build. Updating with AWS Code Deploy. Now, the code pipeline will automatically start the process of continuous deployment. Whenever you make changes to the code under "AWS Code Commit", the AWS Code Pipeline will detect the change the run the deployment process au...

AWS Code Deploy - CI/CD Series Part 3

Image
  AWS Code Deploy is a service provided by Amazon Web Services (AWS) that helps you automate software deployment on various types of computing resources such as EC2 instances, on-premises servers, or Lambda functions. Appspec.yaml: The AppSpec file is a YAML-formatted file used by AWS CodeDeploy to manage the deployment of an application. It provides instructions to CodeDeploy about the application’s source code, the deployment target, the scripts to run, and the permissions required to execute the scripts. It also includes information about the deployment lifecycle hooks, which allow developers to execute custom scripts at specific points during the deployment process. Before we start with code deploy, We need to create a role which has the below permissions. Once the role is created. Let's proceed to Code Build. Create an application. Next, Create a deployment group for the application. Give the deployment group name and role that we created and select the deployment type. I ...