Trigger a build when a CodeCommit branch is updated.
Name | Version |
---|---|
terraform | >= 0.12 |
Name | Version |
---|---|
aws | n/a |
Name | Type |
---|---|
aws_caller_identity.current | 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 |
branch | Name of the branch where updates will trigger a build | string |
"master" |
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 the specified branch is 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 |
name_prefix | Prefix to attach to repo name | string |
"" |
no |
policy_arns | List of IAM policy ARNs to attach to the CodeBuild service role or null to support ignoring externally attached policies | list(string) |
[] |
no |
policy_override | IAM policy document in JSON that extends the basic inline CodeBuild service role | string |
"" |
no |
python_runtime | Python runtime for the handler Lambda function | string |
null |
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 |
vpc_config | Object of inputs for the VPC configuration of the CodeBuild job | object({ |
null |
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 |
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 |