Trigger a build when a CodeCommit pull request is updated.
Name | Version |
---|---|
terraform | >= 0.12 |
Name | Version |
---|---|
aws | n/a |
Name | Type |
---|---|
aws_caller_identity.current | data source |
aws_iam_policy_document.handler | data source |
aws_partition.current | data source |
aws_region.current | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
repo_name | Name of the CodeCommit repository | string |
n/a | yes |
artifacts | Map defining an artifacts object for the CodeBuild job | map(string) |
{} |
no |
badge_enabled | Generates a publicly-accessible URL for the projects build badge | bool |
null |
no |
build_timeout | How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed | number |
null |
no |
buildspec | Buildspec used when a pull request is created or updated | string |
"" |
no |
encryption_key | The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build project's build output artifacts | string |
null |
no |
environment | Map describing the environment object for the CodeBuild job | map(string) |
{} |
no |
environment_variables | List of environment variable map objects for the CodeBuild job | list(map(string)) |
[] |
no |
policy_arns | List of IAM policy ARNs to attach to the CodeBuild service role | list(string) |
[] |
no |
policy_override | IAM policy document in JSON that extends the basic inline CodeBuild service role | string |
"" |
no |
queued_timeout | How long in minutes, from 5 to 480 (8 hours), a build is allowed to be queued before it times out | number |
null |
no |
source_version | A version of the build input to be built for this project. If not specified, the latest version is used | string |
null |
no |
tags | A map of tags to assign to the resource | map(string) |
{} |
no |
Name | Description |
---|---|
codebuild_project_arn | ARN of the CodeBuild Project |
codebuild_project_name | Name of the CodeBuild Project |
codebuild_project_service_role | ARN of the CodeBuild Project Service Role |
events_rule_codebuild_arn | ARN of the CloudWatch Event Rule for CodeBuild |
events_rule_pull_request_rule_arn | ARN of the CloudWatch Event Rule for Pull Requests |
lambda_function_arn | ARN of the Lambda function |
lambda_function_name | Name of the Lambda function |
lambda_role_arn | ARN of the Lambda IAM Role |
lambda_role_name | Name of the Lambda IAM Role |