Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

terraform-aws-codecommit-flow-ci/review

Trigger a build when a CodeCommit pull request is updated.

Requirements

Name Version
terraform >= 0.12

Providers

Name Version
aws n/a

Resources

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

Inputs

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 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

Outputs

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