๐
CI/CD: CodePipeline, CodeBuild, CodeDeploy
DeploymentAWS-native continuous integration and delivery toolchain.
CodePipeline
- โธOrchestrates stages (Source โ Build โ Test โ Deploy) with parallel/sequential actions.
- โธArtifacts flow between stages via an S3 artifact bucket.
- โธCan trigger on source changes (CodeCommit/GitHub/S3) via EventBridge or webhooks.
CodeBuild
- โธbuildspec.yml defines phases: install, pre_build, build, post_build, and artifacts.
- โธRuns in managed, ephemeral build containers; supports custom Docker images.
CodeDeploy
- โธappspec.yml defines files to copy and lifecycle hooks (BeforeInstall, AfterInstall, ApplicationStart, ValidateService, etc.).
- โธIn-place deployment: updates existing instances directly.
- โธBlue/green deployment: new environment provisioned, traffic shifted, old environment kept for rollback.
- โธAlso deploys to Lambda (canary/linear traffic shifting via alias) and ECS (blue/green via target groups).
CloudFormation & SAM
- โธChange sets preview updates before execution โ catches unwanted resource replacement.
- โธNested stacks modularize reusable templates.
- โธSAM adds shorthand serverless resources (Function, Api, SimpleTable); sam build + sam deploy package and transform to CloudFormation.