codebuild

cloudposse/codebuild/aws

Terraform Module HCL AWS

Terraform Module to easily leverage AWS CodeBuild for Continuous Integration

Install
module "codebuild" {
source = "cloudposse/codebuild/aws"
version = "2.0.2"
}
plain text: /constructs/tfmod-cloudposse-codebuild-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-codebuild Terraform module to create AWS CodeBuild project for AWS CodePipeline. --- > [!NOTE] > This project is part of Cloud Posse's comprehensive "SweetOps" approach towards DevOps. > Learn More > > > > > > > > > > It's 100% Open Source and licensed under the APACHE2. > > We literally have hundreds of terraform modules that are Open Source and well-maintained. Check them out! > Usage > [!IMPORTANT] > In Cloud Posse's examples, we avoid pinning modules to specific versions to prevent discrepancies between the documentation > and the latest released versions. However, for your own projects, we strongly advise pinning each module to the exact version > you're using. This practice ensures the stability of your infrastructure. Additionally, we recommend implementing a systemati

Inputs (50)
NameTypeDescriptionDefault
stagestringID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'bunull
source_versionstringA version of the build input to be built for this project. If not specified, the""
cache_bucket_suffix_enabledboolThe cache bucket generates a random 13 character string to generate a unique buctrue
aws_account_idstring(Optional) AWS Account ID. Used as CodeBuild ENV variable when building Docker i""
default_permissions_enabledboolWhen 'true' default base IAM permissions to get up and running with CodeBuild artrue
extra_permissionslist(string)List of action strings which will be added to IAM service account permissions. O[]
secondary_artifact_identifierstringSecondary artifact identifier. Must match the identifier in the build specnull
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'stnull
label_key_casestringControls the letter case of the `tags` keys (label names) for tags generated by null
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
build_imagestringDocker image for build environment, e.g. 'aws/codebuild/standard:2.0' or 'aws/co"aws/codebuild/standard:2.0"
buildspecstringOptional buildspec declaration to use for building the project""
cache_typestringThe type of storage that will be used for the AWS CodeBuild project cache. Valid"NO_CACHE"
secondary_sourceslist(object( { git_c(Optional) secondary source for the codebuild project in addition to the primary[]
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
local_cache_modeslist(string)Specifies settings that AWS CodeBuild uses to store and reuse build dependencies[]
report_build_statusboolSet to true to report the status of a build's start and finish to your source prfalse
source_credential_auth_typestringThe type of authentication used to connect to a GitHub, GitHub Enterprise, or Bi"PERSONAL_ACCESS_TOKEN"
logs_configanyConfiguration for the builds to store log data to CloudWatch or S3.{}
… and 10 more inputs
Outputs (8)
project_arn — Project ARN
project_name — Project name
project_id — Project ID
role_id — IAM Role ID
role_arn — IAM Role ARN
cache_bucket_name — Cache S3 bucket name
cache_bucket_arn — Cache S3 bucket ARN
badge_url — The URL of the build badge when badge_enabled is enabled
Resources (14)
aws_codebuild_projectaws_codebuild_source_credentialaws_iam_policyaws_iam_roleaws_iam_role_policy_attachmentaws_s3_bucketaws_s3_bucket_aclaws_s3_bucket_lifecycle_configurationaws_s3_bucket_loggingaws_s3_bucket_ownership_controlsaws_s3_bucket_public_access_blockaws_s3_bucket_server_side_encryption_configurationaws_s3_bucket_versioningrandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.2
Cloud AWS
★ Stars121
Forks133
Total downloads595.9k
Inputs50
Outputs8
Resources14
Examples4
LicenseApache-2.0
Namespacecloudposse
Updated