Overview
Configure backups for your EC2 instances to ensure high availability and resiliency. This plan evaluates all EC2 instances, guides you through options for configuring backups, and includes testing and validation steps to ensure that the configurations meet your requirements.
Execution Details
Assessment Phase (Gather Inputs)
- Set AWS Region: Ensure the AWS CLI is configured to use the 'us-east-1' region. This establishes the default region for all AWS operations.
- List GitHub Connections: Retrieve existing GitHub connections to verify their availability for CI/CD pipeline configuration.
- Set Project Variables: Collect key information such as your GitHub repository details, pipeline name, CodeBuild project, CloudFormation stack, and connection settings critical for the pipeline setup.
Summary Phase (Quick Review)
- Review Config Summary: Display and validate key configuration details like AWS region, GitHub repository, pipeline name, and build project. User confirmation is required to ensure accuracy before proceeding.
Configuration Phase (CI/CD Pipeline Setup)
- Verify GitHub Connection: Confirm the availability of at least one active GitHub connection.
- Create CodeBuild Project: Set up a CodeBuild project that builds your application using your specified GitHub repository and buildspec file.
- Validate buildspec.yml: Check the repository for the presence of buildspec.yml and ensure it contains necessary cfn-guard validation commands.
- Create Artifact Bucket: Create or confirm the presence of an S3 bucket to store pipeline artifacts.
- Create CodePipeline: Deploy the CI/CD pipeline with defined stages for Source, Build, and Deploy.
Validation Phase (Final Checklist & User Verification)
- Confirm GitHub Connection: Ensure the GitHub connection remains active and available.
- Validate Repository Files: Verify that necessary files like buildspec.yml and .guard files are present in the repository.
- Manual Pipeline Test: Trigger and monitor a manual pipeline execution to verify that all stages execute successfully and validate output.
- Confirm cfn-guard Output: Review CodeBuild logs specifically for successful cfn-guard validation, confirming that the CloudFormation template adheres to predefined rules.