| Name | Version |
|---|---|
| terraform | ~> 1.0 |
| aws | ~> 5.0 |
No providers.
| Name | Source | Version |
|---|---|---|
| codebuild | git::https://github.com/launchbynttdata/terraform-aws-codebuild | 1.0.0 |
| resource_names | terraform.registry.launch.nttdata.com/module_library/resource_name/launch | ~> 2.0 |
No resources.
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| name | Stage action name for the CodeBuild project. | string |
"build" |
no |
| logical_product_family | (Required) Name of the product family for which the resource is created. Example: org_name, department_name. |
string |
"launch" |
no |
| logical_product_service | (Required) Name of the product service for which the resource is created. For example, backend, frontend, middleware etc. |
string |
"servicename" |
no |
| environment | Environment in which the resource should be provisioned like dev, qa, prod etc. | string |
"dev" |
no |
| environment_number | The environment count for the respective environment. Defaults to 000. Increments in value of 1 | string |
"000" |
no |
| region | AWS Region in which the infra needs to be provisioned | string |
"us-east-2" |
no |
| resource_number | The resource count for the respective resource. Defaults to 000. Increments in value of 1 | string |
"000" |
no |
| resource_names_map | A map of key to resource_name that will be used by tf-launch-module_library-resource_name to generate resource names | map(object( |
{ |
no |
| codebuild_iam | Additional IAM actions to add to CodeBuild IAM role. | string |
null |
no |
| environment_variables | A list of maps, that contain the keys 'name', 'value', and 'type' to be used as additional environment variables for the build. Valid types are 'PLAINTEXT', 'PARAMETER_STORE', or 'SECRETS_MANAGER' | list(object( |
[] |
no |
| description | Short description of the CodeBuild project | string |
"Managed by Terraform" |
no |
| build_image | Docker image for build environment, e.g. 'aws/codebuild/standard:2.0' or 'aws/codebuild/eb-nodejs-6.10.0-amazonlinux-64:4.0.0'. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html | string |
"aws/codebuild/amazonlinux2-x86_64-standard:4.0" |
no |
| build_compute_type | Instance type of the build instance | string |
"BUILD_GENERAL1_SMALL" |
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 |
60 |
no |
| build_type | The type of build environment, e.g. 'LINUX_CONTAINER' or 'WINDOWS_CONTAINER' | string |
"LINUX_CONTAINER" |
no |
| privileged_mode | (Optional) If set to true, enables running the Docker daemon inside a Docker container on the CodeBuild instance. Used when building Docker images | bool |
false |
no |
| source_type | The type of repository that contains the source code to be built. Valid values for this parameter are: CODECOMMIT, CODEPIPELINE, GITHUB, GITHUB_ENTERPRISE, BITBUCKET or S3 | string |
"CODEPIPELINE" |
no |
| source_location | The location of the source code from git or s3 | string |
"" |
no |
| artifact_type | The build output artifact's type. Valid values for this parameter are: CODEPIPELINE, NO_ARTIFACTS or S3 | string |
"CODEPIPELINE" |
no |
| artifact_location | Location of artifact. Applies only for artifact of type S3 | string |
"" |
no |
| logs_config | Configuration for the builds to store log data to CloudWatch or S3. | any |
{} |
no |
| extra_permissions | List of action strings which will be added to IAM service account permissions. | list(any) |
[] |
no |
| encryption_enabled | When set to 'true' the resource will have AES256 encryption enabled by default | bool |
false |
no |
| encryption_key | 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 |
| codebuild_projects | List of CodeBuild projects to create. | any |
[] |
no |
| pipeline_name | Pipeline that created the codebuild. | string |
null |
no |
| secondary_sources | (Optional) secondary source for the codebuild project in addition to the primary location | list(object( |
[] |
no |
| build_image_pull_credentials_type | Type of credentials AWS CodeBuild uses to pull images in your build.Valid values: CODEBUILD, SERVICE_ROLE. When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. | string |
"CODEBUILD" |
no |
| github_token | (Optional) GitHub auth token environment variable (GITHUB_TOKEN). Required if enable_github_authentication=true |
string |
"" |
no |
| github_token_type | Storage type of GITHUB_TOKEN environment variable (PARAMETER_STORE, PLAINTEXT, SECRETS_MANAGER) |
string |
"SECRETS_MANAGER" |
no |
| enable_github_authentication | Whether to enable Github authentication using Personal Access token. If true, it uses the github_token and github_token_type must be of type SECRETS_MANAGER to authenticate |
bool |
false |
no |
| create_webhooks | Whether to create webhooks for Github, GitHub Enterprise or Bitbucket | bool |
false |
no |
| webhook_build_type | Webhook build type. Choose between BUILD or BUILD_BATCH | string |
"BUILD" |
no |
| webhook_filters | Filters supported by webhook. EVENT, BASE_REF, HEAD_REF, ACTOR_ACCOUNT_ID, FILE_PATH, COMMIT_MESSAGE | map(string) |
{} |
no |
| tags | A map of tags to add to the resources created by the module. | map(string) |
{} |
no |
| Name | Description |
|---|---|
| project_name | Project name |
| project_id | Project ID |
| role_id | IAM Role ID |
| role_arn | IAM Role ARN |
| pipeline_name | Pipeline that created the codebuild. |
| buildspec | The buildspec the CodeBuild project is using. |