Creates a S3 packaged AWS Lambda function deployed using AWS CodePipeline and CodeDeploy.
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 s3-deployment/package/lambda.zip --body lambda.zip
Name | Version |
---|---|
terraform | >= 1.3 |
aws | >= 5.82.2 |
Name | Version |
---|---|
aws | >= 5.82.2 |
Name | Source | Version |
---|---|---|
deployment | ../../../modules/deployment | n/a |
fixtures | ../../fixtures | n/a |
lambda | ../../../ | n/a |
Name | Type |
---|---|
aws_lambda_alias.this | resource |
aws_s3_bucket.source | resource |
aws_s3_bucket_notification.source | resource |
aws_s3_bucket_public_access_block.source | resource |
aws_s3_bucket_versioning.source | resource |
aws_s3_object.initial | resource |
aws_caller_identity.current | data source |
aws_region.current | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
region | n/a | string |
"eu-west-1" |
no |
No outputs.