Creates a S3 packaged AWS Lambda function deployed using AWS CodePipeline, CodeBuild and CodeDeploy showcasing all available features:
- custom deployment configurations to shift traffic to the new version and executes traffic hooks
- before and after traffic hooks
- rollback and CloudWatch alarms configuration
- additional custom CodePipeline step executed after the deployment
terraform init
terraform plan
Note that this example may create resources which cost money. Run terraform destroy
to destroy those resources.
Upload a new zip
package to S3 to start the deployment pipeline:
aws s3api put-object --bucket example-ci-{account_id}-{region} --key deployment-hooks/package/lambda.zip --body lambda.zip
Name | Version |
---|---|
terraform | >= 1.3 |
archive | >= 2.2 |
aws | >= 5.32 |
Name | Version |
---|---|
archive | >= 2.2 |
aws | >= 5.32 |
Name | Source | Version |
---|---|---|
deployment | ../../../modules/deployment | n/a |
function | ../../fixtures | n/a |
lambda | ../../../ | n/a |
traffic_hook | ../../../ | n/a |
Name | Description | Type | Default | Required |
---|---|---|---|---|
region | n/a | string |
"eu-west-1" |
no |
No outputs.