Stages – isolation boundaries for your environments –Rolling Out a CI/CD Pipeline

Think of pipelines as templates that can have multiple executions going on in parallel. Ideally, every single commit that ends up in the repository is a new change you would like to run the pipeline against. Stages are the processes you would like to avoid concurrent executions for. For example, you don’t want to deploy … Read more

Key concepts in CDK– Programmatic Approach to IaC with AWS CDK

The three most important CDK concepts are constructs, stacks, and apps. All of them are represented as classes in the respective programming languages. Let’s clearly define the role of each of these concepts in realizing your infrastructure on AWS. Constructs A CDK construct is the underlying AWS resource that you would like to manage as … Read more

Adopting a declarative approach – Programmatic Approach to IaC with AWS CDK

Once the needs grow beyond basic scripting solutions, organizations typically take the next steps with more advanced services such as CloudFormation and Terraform. In some cases, they might even adopt these services directly, depending on the existing experience and knowledge within the company. These services offer a declarative approach to infrastructure definition, where the user … Read more

Deploying infrastructure and application stacks – Rolling Out a CI/CD Pipeline

Before we can deploy pipeline resources, we need to have the underlying infrastructure and application components available. This is mainly to ensure that inter-stack dependencies are met so that the pipeline stack to be deployed successfully: We now have all the resources that we need in our AWS account to roll out application changes automatically. … Read more

Creating a base AMI for the application instances – Rolling Out a CI/CD Pipeline

Let’s start a new session on our Cloud9 IDE before switching to the chapter-5/ directory and using packer to build the AMI: aws-devops-simplified:~/environment/chapter-5/packer $ packer build ami_build.json … … … Build ‘amazon-ebs’ finished after 6 minutes 1 second. ==> Wait completed after 6 minutes 1 second ==> Builds finished. The artifacts of successful builds are: … Read more

Bootstrapping a new CDK project – Programmatic Approach to IaC with AWS CDK

The very first step before we can work with AWS CDK is to bootstrap an empty directory with one of the supported programming languages. To make this task easier for users, CDK offers a command-line interface utility that is pre-installed for you in the Cloud9 IDE that we have been using throughout this book. Note … Read more

Triggering actions in other regions – Rolling Out a CI/CD Pipeline

CodePipeline actions let you perform operations not only in the region where the pipeline is hosted but in others. The elegance of this feature is that the respective input artifacts are made available in the other region by the service itself. You just need to ensure the presence of an artifact bucket in the target … Read more