{"id":15684577,"url":"https://github.com/lgallard/terraform-aws-codebuild","last_synced_at":"2025-07-29T02:08:00.580Z","repository":{"id":48991651,"uuid":"246390653","full_name":"lgallard/terraform-aws-codebuild","owner":"lgallard","description":"Terraform module for creating AWS CodeBuild Projects","archived":false,"fork":false,"pushed_at":"2021-07-01T19:37:28.000Z","size":69,"stargazers_count":13,"open_issues_count":0,"forks_count":27,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-20T05:24:58.035Z","etag":null,"topics":["aws","ci-cd","codebuild","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lgallard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-10T19:34:35.000Z","updated_at":"2023-09-04T05:01:50.000Z","dependencies_parsed_at":"2022-09-16T06:10:58.450Z","dependency_job_id":null,"html_url":"https://github.com/lgallard/terraform-aws-codebuild","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/lgallard/terraform-aws-codebuild","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgallard%2Fterraform-aws-codebuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgallard%2Fterraform-aws-codebuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgallard%2Fterraform-aws-codebuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgallard%2Fterraform-aws-codebuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lgallard","download_url":"https://codeload.github.com/lgallard/terraform-aws-codebuild/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lgallard%2Fterraform-aws-codebuild/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267617643,"owners_count":24116208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","ci-cd","codebuild","terraform","terraform-module"],"created_at":"2024-10-03T17:19:25.773Z","updated_at":"2025-07-29T02:08:00.556Z","avatar_url":"https://github.com/lgallard.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Terraform](https://lgallardo.com/images/terraform.jpg)\n# terraform-aws-codebuild\nTerraform module for creating [AWS CodeBuild](https://aws.amazon.com/codebuild/) Projects. AWS CodeBuild is a fully managed continuous integration service that compiles source code, runs tests, and produces software packages that are ready to deploy.\n\n## Usage\nYou can  define CodeBuild projects using object variables (made of maps, lists, booleans, etc.), or you can define projects using the classic module's variables approach (eg. `artifacts_*`, `cache_*`, etc.).\n\nIn the [examples](examples/) folder you can check both approaches in detail and another example with VPC support.\n\n\n## Example using objects\n```\nmodule \"myapp-project\" {\n\n  source = \"lgallard/codebuild/aws\"\n\n  name        = \"my-app\"\n  description = \"Codebuild for deploying myapp\"\n\n  # CodeBuild Source\n  codebuild_source_version = \"master\"\n  codebuild_source = {\n    type            = \"GITHUB\"\n    location        = \"https://github.com/lgallard/codebuild-example.git\"\n    git_clone_depth = 1\n\n    git_submodules_config = {\n      fetch_submodules = true\n    }\n  }\n\n  # Secondary Sources (optional)\n  codebuild_secondary_sources = [\n    {\n      type              = \"GITHUB\"\n      location          = \"https://github.com/myprofile/myproject-1.git\"\n      source_identifier = \"my_awesome_project1\"\n    },\n    {\n      type                = \"GITHUB\"\n      location            = \"https://github.com/myprofile/myproject-2.git\"\n      git_clone_depth     = 1\n      source_identifier   = \"my_awesome_project2\"\n      report_build_status = true\n      insecure_ssl        = true\n    }\n  ]\n\n  # Environment\n  environment = {\n    compute_type    = \"BUILD_GENERAL1_SMALL\"\n    image           = \"aws/codebuild/standard:2.0\"\n    type            = \"LINUX_CONTAINER\"\n    privileged_mode = true\n\n    # Environment variables\n    variables = [\n      {\n        name  = \"REGISTRY_URL\"\n        value = \"012345678910.dkr.ecr.us-east-1.amazonaws.com/my-ecr\"\n      },\n      {\n        name  = \"AWS_DEFAULT_REGION\"\n        value = \"us-east-1\"\n      },\n    ]\n  }\n\n  # Artifacts\n  artifacts = {\n    location  = aws_s3_bucket.myapp-project.bucket\n    type      = \"S3\"\n    path      = \"/\"\n    packaging = \"ZIP\"\n  }\n\n  # Cache\n  cache = {\n    type     = \"S3\"\n    location = aws_s3_bucket.myapp-project.bucket\n  }\n\n  # Logs\n  s3_logs = {\n    status   = \"ENABLED\"\n    location = \"${aws_s3_bucket.myapp-project.id}/build-log\"\n  }\n\n  # Tags\n  tags = {\n    Environment = \"dev\"\n    owner       = \"development-team\"\n  }\n\n}\n```\n\n## Example using variables\n```\nmodule \"myapp-project\" {\n\n  source = \"lgallard/codebuild/aws\"\n\n  name        = \"my-app-var\"\n  description = \"Codebuild for deploying myapp (variables)\"\n\n  # CodeBuild Source\n  codebuild_source_version = \"master\"\n\n  codebuild_source_type                                   = \"GITHUB\"\n  codebuild_source_location                               = \"https://github.com/lgallard/codebuild-example.git\"\n  codebuild_source_git_clone_depth                        = 1\n  codebuild_source_git_submodules_config_fetch_submodules = true\n\n  # Environment\n  environment_compute_type    = \"BUILD_GENERAL1_SMALL\"\n  environment_image           = \"aws/codebuild/standard:2.0\"\n  environment_type            = \"LINUX_CONTAINER\"\n  environment_privileged_mode = true\n\n  # Environment variables\n  environment_variables = [\n    {\n      name  = \"REGISTRY_URL\"\n      value = \"012345678910.dkr.ecr.us-east-1.amazonaws.com/my-ecr\"\n    },\n    {\n      name  = \"AWS_DEFAULT_REGION\"\n      value = \"us-east-1\"\n    },\n  ]\n\n  # Artifacts\n  artifacts_location  = aws_s3_bucket.myapp-project.bucket\n  artifacts_type      = \"S3\"\n  artifacts_path      = \"/\"\n  artifacts_packaging = \"ZIP\"\n\n  # Cache\n  cache_type     = \"S3\"\n  cache_location = aws_s3_bucket.myapp-project.bucket\n\n  # Logs\n  s3_logs_status   = \"ENABLED\"\n  s3_logs_location = \"${aws_s3_bucket.myapp-project.id}/build-var-log\"\n\n\n  # Tags\n  tags = {\n    Environment = \"dev\"\n    owner       = \"development-team\"\n  }\n\n}\n```\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\nNo requirements.\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | n/a |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_codebuild_project.cb_project](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/codebuild_project) | resource |\n| [aws_iam_role.service_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |\n| [aws_iam_role_policy.codebuild_role_extra_policies](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) | resource |\n| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |\n| [aws_iam_policy_document.codebuild_assume_role_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n| [aws_iam_policy_document.codebuild_role_extra_policies](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |\n| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_artifacts\"\u003e\u003c/a\u003e [artifacts](#input\\_artifacts) | Information about the project's build output artifacts. | `any` | `{}` | no |\n| \u003ca name=\"input_artifacts_artifact_identifier\"\u003e\u003c/a\u003e [artifacts\\_artifact\\_identifier](#input\\_artifacts\\_artifact\\_identifier) | The artifact identifier. Must be the same specified inside AWS CodeBuild buildspec. | `string` | `null` | no |\n| \u003ca name=\"input_artifacts_encryption_disabled\"\u003e\u003c/a\u003e [artifacts\\_encryption\\_disabled](#input\\_artifacts\\_encryption\\_disabled) | If set to true, output artifacts will not be encrypted. If `type` is set to `NO_ARTIFACTS` then this value will be ignored. | `bool` | `false` | no |\n| \u003ca name=\"input_artifacts_location\"\u003e\u003c/a\u003e [artifacts\\_location](#input\\_artifacts\\_location) | Information about the build output artifact location. If `type` is set to `CODEPIPELINE` or `NO_ARTIFACTS` then this value will be ignored. If `type` is set to `S3`, this is the name of the output bucket. | `string` | `null` | no |\n| \u003ca name=\"input_artifacts_name\"\u003e\u003c/a\u003e [artifacts\\_name](#input\\_artifacts\\_name) | The name of the project. If `type` is set to `S3`, this is the name of the output artifact object. | `string` | `null` | no |\n| \u003ca name=\"input_artifacts_namespace_type\"\u003e\u003c/a\u003e [artifacts\\_namespace\\_type](#input\\_artifacts\\_namespace\\_type) | The namespace to use in storing build artifacts. If `type` is set to `S3`, then valid values for this parameter are: `BUILD_ID` or `NONE`. | `string` | `null` | no |\n| \u003ca name=\"input_artifacts_override_artifact_name\"\u003e\u003c/a\u003e [artifacts\\_override\\_artifact\\_name](#input\\_artifacts\\_override\\_artifact\\_name) | If set to true, a name specified in the build spec file overrides the artifact name. | `bool` | `false` | no |\n| \u003ca name=\"input_artifacts_packaging\"\u003e\u003c/a\u003e [artifacts\\_packaging](#input\\_artifacts\\_packaging) | The type of build output artifact to create. If `type` is set to `S3`, valid values for this parameter are: `NONE` or `ZIP` | `string` | `null` | no |\n| \u003ca name=\"input_artifacts_path\"\u003e\u003c/a\u003e [artifacts\\_path](#input\\_artifacts\\_path) | If `type` is set to `S3`, this is the path to the output artifact | `string` | `\"\"` | no |\n| \u003ca name=\"input_artifacts_type\"\u003e\u003c/a\u003e [artifacts\\_type](#input\\_artifacts\\_type) | The build output artifact's type. Valid values for this parameter are: `CODEPIPELINE`, `NO_ARTIFACTS` or `S3`. | `string` | `\"CODEPIPELINE\"` | no |\n| \u003ca name=\"input_badge_enabled\"\u003e\u003c/a\u003e [badge\\_enabled](#input\\_badge\\_enabled) | Generates a publicly-accessible URL for the projects build badge. Available as badge\\_url attribute when enabled. | `bool` | `false` | no |\n| \u003ca name=\"input_build_timeout\"\u003e\u003c/a\u003e [build\\_timeout](#input\\_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.The default is 60 minutes. | `number` | `60` | no |\n| \u003ca name=\"input_cache\"\u003e\u003c/a\u003e [cache](#input\\_cache) | Information about the cache storage for the project. | `any` | `{}` | no |\n| \u003ca name=\"input_cache_location\"\u003e\u003c/a\u003e [cache\\_location](#input\\_cache\\_location) | The location where the AWS CodeBuild project stores cached resources. For type S3 the value must be a valid S3 bucket name/prefix. (Required when cache `type` is `S3`) | `string` | `null` | no |\n| \u003ca name=\"input_cache_modes\"\u003e\u003c/a\u003e [cache\\_modes](#input\\_cache\\_modes) | Specifies settings that AWS CodeBuild uses to store and reuse build dependencies. Valid values: `LOCAL_SOURCE_CACHE`, `LOCAL_DOCKER_LAYER_CACHE`, and `LOCAL_CUSTOM_CACHE`. (Required when cache type is `LOCAL`) | `list(any)` | `[]` | no |\n| \u003ca name=\"input_cache_type\"\u003e\u003c/a\u003e [cache\\_type](#input\\_cache\\_type) | The type of storage that will be used for the AWS CodeBuild project cache. Valid values: `NO_CACHE`, `LOCAL`, and `S3`. | `string` | `\"NO_CACHE\"` | no |\n| \u003ca name=\"input_cloudwatch_logs\"\u003e\u003c/a\u003e [cloudwatch\\_logs](#input\\_cloudwatch\\_logs) | Configuration for the builds to store log data to CloudWatch. | `any` | `{}` | no |\n| \u003ca name=\"input_cloudwatch_logs_group_name\"\u003e\u003c/a\u003e [cloudwatch\\_logs\\_group\\_name](#input\\_cloudwatch\\_logs\\_group\\_name) | The group name of the logs in CloudWatch Logs. | `string` | `null` | no |\n| \u003ca name=\"input_cloudwatch_logs_status\"\u003e\u003c/a\u003e [cloudwatch\\_logs\\_status](#input\\_cloudwatch\\_logs\\_status) | Current status of logs in CloudWatch Logs for a build project. Valid values: `ENABLED`, `DISABLED.` | `string` | `\"ENABLED\"` | no |\n| \u003ca name=\"input_cloudwatch_logs_stream_name\"\u003e\u003c/a\u003e [cloudwatch\\_logs\\_stream\\_name](#input\\_cloudwatch\\_logs\\_stream\\_name) | The stream name of the logs in CloudWatch Logs. | `string` | `null` | no |\n| \u003ca name=\"input_codebuild_secondary_source_auth\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_auth](#input\\_codebuild\\_secondary\\_source\\_auth) | Information about the authorization settings for AWS CodeBuild to access the source code to be built. | `map` | `{}` | no |\n| \u003ca name=\"input_codebuild_secondary_source_auth_resource\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_auth\\_resource](#input\\_codebuild\\_secondary\\_source\\_auth\\_resource) | The resource value that applies to the specified authorization type. | `string` | `null` | no |\n| \u003ca name=\"input_codebuild_secondary_source_auth_type\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_auth\\_type](#input\\_codebuild\\_secondary\\_source\\_auth\\_type) | The authorization type to use. The only valid value is OAUTH | `string` | `\"OAUTH\"` | no |\n| \u003ca name=\"input_codebuild_secondary_source_buildspec\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_buildspec](#input\\_codebuild\\_secondary\\_source\\_buildspec) | The build spec declaration to use for this build project's related builds. Optional | `string` | `null` | no |\n| \u003ca name=\"input_codebuild_secondary_source_git_clone_depth\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_git\\_clone\\_depth](#input\\_codebuild\\_secondary\\_source\\_git\\_clone\\_depth) | Information about the Git submodules configuration for an AWS CodeBuild build project. Git submodules config blocks are documented below. This option is only valid when the type is `CODECOMMIT`. | `number` | `0` | no |\n| \u003ca name=\"input_codebuild_secondary_source_git_submodules_config\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_git\\_submodules\\_config](#input\\_codebuild\\_secondary\\_source\\_git\\_submodules\\_config) | Information about the Git submodules configuration for an AWS CodeBuild build project. Git submodules config blocks are documented below. This option is only valid when the type is `CODECOMMIT`. | `map` | `{}` | no |\n| \u003ca name=\"input_codebuild_secondary_source_git_submodules_config_fetch_submodules\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_git\\_submodules\\_config\\_fetch\\_submodules](#input\\_codebuild\\_secondary\\_source\\_git\\_submodules\\_config\\_fetch\\_submodules) | If set to true, fetches Git submodules for the AWS CodeBuild build project. | `bool` | `true` | no |\n| \u003ca name=\"input_codebuild_secondary_source_identifier\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_identifier](#input\\_codebuild\\_secondary\\_source\\_identifier) | The name of a folder named that the source will be checked out into inside the AWS CodeBuild source directory | `string` | `null` | no |\n| \u003ca name=\"input_codebuild_secondary_source_insecure_ssl\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_insecure\\_ssl](#input\\_codebuild\\_secondary\\_source\\_insecure\\_ssl) | Ignore SSL warnings when connecting to source control. | `bool` | `false` | no |\n| \u003ca name=\"input_codebuild_secondary_source_location\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_location](#input\\_codebuild\\_secondary\\_source\\_location) | The location of the source code from git or s3. | `string` | `null` | no |\n| \u003ca name=\"input_codebuild_secondary_source_report_build_status\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_report\\_build\\_status](#input\\_codebuild\\_secondary\\_source\\_report\\_build\\_status) | Set to true to report the status of a build's start and finish to your source provider. This option is only valid when the type is `BITBUCKET` or `GITHUB`. | `bool` | `false` | no |\n| \u003ca name=\"input_codebuild_secondary_source_type\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_source\\_type](#input\\_codebuild\\_secondary\\_source\\_type) | The type of repository that contains the secondary source code to be built. Valid values for this parameter are: `CODECOMMIT`, `CODEPIPELINE`, `GITHUB`, `GITHUB_ENTERPRISE`, `BITBUCKET`, `S3` or `NO_SOURCE`. | `string` | `\"CODEPIPELINE\"` | no |\n| \u003ca name=\"input_codebuild_secondary_sources\"\u003e\u003c/a\u003e [codebuild\\_secondary\\_sources](#input\\_codebuild\\_secondary\\_sources) | Information about the project's secondary sources code. See the related codebuild source objects for descriptions of each parameter.\u003cbr\u003e  The parameter `source_identifier` is the name of the directory to clone the secondary source into as a sibling to the primary source code directory.\u003cbr\u003e  If this variable is omitted, no secondary sources are created.\u003cbr\u003e\u003cbr\u003e  eg:\u003cpre\u003ecodebuild_secondary_sources = [\u003cbr\u003e    {\u003cbr\u003e      type              = \"GITHUB\"\u003cbr\u003e      location          = \"https://github.com/myprofile/myproject-1.git\"\u003cbr\u003e      source_identifier = \"my_awesome_project1\"\u003cbr\u003e    },\u003cbr\u003e    {\u003cbr\u003e      type                = \"GITHUB\"\u003cbr\u003e      location            = \"https://github.com/myprofile/myproject-2.git\"\u003cbr\u003e      git_clone_depth     = 1\u003cbr\u003e      source_identifier   = \"my_awesome_project2\"\u003cbr\u003e      report_build_status = true\u003cbr\u003e      insecure_ssl        = true\u003cbr\u003e    }\u003cbr\u003e  ]\u003c/pre\u003e | `any` | `[]` | no |\n| \u003ca name=\"input_codebuild_source\"\u003e\u003c/a\u003e [codebuild\\_source](#input\\_codebuild\\_source) | Information about the project's input source code. | `any` | `{}` | no |\n| \u003ca name=\"input_codebuild_source_auth\"\u003e\u003c/a\u003e [codebuild\\_source\\_auth](#input\\_codebuild\\_source\\_auth) | Information about the authorization settings for AWS CodeBuild to access the source code to be built. | `map(any)` | `{}` | no |\n| \u003ca name=\"input_codebuild_source_auth_resource\"\u003e\u003c/a\u003e [codebuild\\_source\\_auth\\_resource](#input\\_codebuild\\_source\\_auth\\_resource) | The resource value that applies to the specified authorization type. | `string` | `null` | no |\n| \u003ca name=\"input_codebuild_source_auth_type\"\u003e\u003c/a\u003e [codebuild\\_source\\_auth\\_type](#input\\_codebuild\\_source\\_auth\\_type) | The authorization type to use. The only valid value is OAUTH | `string` | `\"OAUTH\"` | no |\n| \u003ca name=\"input_codebuild_source_buildspec\"\u003e\u003c/a\u003e [codebuild\\_source\\_buildspec](#input\\_codebuild\\_source\\_buildspec) | The build spec declaration to use for this build project's related builds. This must be set when type is iNO\\_SOURCE | `string` | `null` | no |\n| \u003ca name=\"input_codebuild_source_git_clone_depth\"\u003e\u003c/a\u003e [codebuild\\_source\\_git\\_clone\\_depth](#input\\_codebuild\\_source\\_git\\_clone\\_depth) | Information about the Git submodules configuration for an AWS CodeBuild build project. Git submodules config blocks are documented below. This option is only valid when the type is `CODECOMMIT`. | `number` | `0` | no |\n| \u003ca name=\"input_codebuild_source_git_submodules_config\"\u003e\u003c/a\u003e [codebuild\\_source\\_git\\_submodules\\_config](#input\\_codebuild\\_source\\_git\\_submodules\\_config) | Information about the Git submodules configuration for an AWS CodeBuild build project. Git submodules config blocks are documented below. This option is only valid when the type is `CODECOMMIT`. | `map(any)` | `{}` | no |\n| \u003ca name=\"input_codebuild_source_git_submodules_config_fetch_submodules\"\u003e\u003c/a\u003e [codebuild\\_source\\_git\\_submodules\\_config\\_fetch\\_submodules](#input\\_codebuild\\_source\\_git\\_submodules\\_config\\_fetch\\_submodules) | If set to true, fetches Git submodules for the AWS CodeBuild build project. | `bool` | `true` | no |\n| \u003ca name=\"input_codebuild_source_insecure_ssl\"\u003e\u003c/a\u003e [codebuild\\_source\\_insecure\\_ssl](#input\\_codebuild\\_source\\_insecure\\_ssl) | Ignore SSL warnings when connecting to source control. | `bool` | `false` | no |\n| \u003ca name=\"input_codebuild_source_location\"\u003e\u003c/a\u003e [codebuild\\_source\\_location](#input\\_codebuild\\_source\\_location) | The location of the source code from git or s3. | `string` | `null` | no |\n| \u003ca name=\"input_codebuild_source_report_build_status\"\u003e\u003c/a\u003e [codebuild\\_source\\_report\\_build\\_status](#input\\_codebuild\\_source\\_report\\_build\\_status) | Set to true to report the status of a build's start and finish to your source provider. This option is only valid when the type is `BITBUCKET` or `GITHUB`. | `bool` | `false` | no |\n| \u003ca name=\"input_codebuild_source_type\"\u003e\u003c/a\u003e [codebuild\\_source\\_type](#input\\_codebuild\\_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`, `S3` or `NO_SOURCE`. | `string` | `\"CODEPIPELINE\"` | no |\n| \u003ca name=\"input_codebuild_source_version\"\u003e\u003c/a\u003e [codebuild\\_source\\_version](#input\\_codebuild\\_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 |\n| \u003ca name=\"input_description\"\u003e\u003c/a\u003e [description](#input\\_description) | A short description of the project. | `string` | `null` | no |\n| \u003ca name=\"input_encryption_key\"\u003e\u003c/a\u003e [encryption\\_key](#input\\_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 |\n| \u003ca name=\"input_environment\"\u003e\u003c/a\u003e [environment](#input\\_environment) | Information about the project's build environment. | `any` | `{}` | no |\n| \u003ca name=\"input_environment_certificate\"\u003e\u003c/a\u003e [environment\\_certificate](#input\\_environment\\_certificate) | The ARN of the S3 bucket, path prefix and object key that contains the PEM-encoded certificate. | `string` | `null` | no |\n| \u003ca name=\"input_environment_compute_type\"\u003e\u003c/a\u003e [environment\\_compute\\_type](#input\\_environment\\_compute\\_type) | Information about the compute resources the build project will use. Available values for this parameter are: `BUILD_GENERAL1_SMALL`, `BUILD_GENERAL1_MEDIUM`, `BUILD_GENERAL1_LARGE` or `BUILD_GENERAL1_2XLARGE`. `BUILD_GENERAL1_SMALL` is only valid if type is set to `LINUX_CONTAINER`. When type is set to `LINUX_GPU_CONTAINER`, compute\\_type need to be `BUILD_GENERAL1_LARGE`. | `string` | `\"BUILD_GENERAL1_MEDIUM\"` | no |\n| \u003ca name=\"input_environment_image\"\u003e\u003c/a\u003e [environment\\_image](#input\\_environment\\_image) | The Docker image to use for this build project. Valid values include Docker images provided by CodeBuild (e.g `aws/codebuild/standard:2.0`), Docker Hub images (e.g. `hashicorp/terraform:latest`), and full Docker repository URIs such as those for ECR (e.g. `137112412989.dkr.ecr.us-west-2.amazonaws.com/amazonlinux:latest`) | `string` | `\"aws/codebuild/standard:2.0\"` | no |\n| \u003ca name=\"input_environment_image_pull_credentials_type\"\u003e\u003c/a\u003e [environment\\_image\\_pull\\_credentials\\_type](#input\\_environment\\_image\\_pull\\_credentials\\_type) | The type of credentials AWS CodeBuild uses to pull images in your build. Available values for this parameter are `CODEBUID` or `SERVICE_ROLE`. When you use a cross-account or private registry image, you must use SERVICE\\_ROLE credentials. When you use an AWS CodeBuild curated image, you must use CODEBUILD credentials. | `string` | `\"CODEBUILD\"` | no |\n| \u003ca name=\"input_environment_privileged_mode\"\u003e\u003c/a\u003e [environment\\_privileged\\_mode](#input\\_environment\\_privileged\\_mode) | If set to true, enables running the Docker daemon inside a Docker container. | `bool` | `false` | no |\n| \u003ca name=\"input_environment_registry_credential\"\u003e\u003c/a\u003e [environment\\_registry\\_credential](#input\\_environment\\_registry\\_credential) | Information about credentials for access to a private Docker registry. Registry Credential config blocks are documented below. | `map(any)` | `{}` | no |\n| \u003ca name=\"input_environment_type\"\u003e\u003c/a\u003e [environment\\_type](#input\\_environment\\_type) | The type of build environment to use for related builds. Available values are: `LINUX_CONTAINER`, `LINUX_GPU_CONTAINER`, `WINDOWS_CONTAINER` or `ARM_CONTAINER`. | `string` | `\"LINUX_CONTAINER\"` | no |\n| \u003ca name=\"input_environment_variables\"\u003e\u003c/a\u003e [environment\\_variables](#input\\_environment\\_variables) | A list of sets of environment variables to make available to builds for this build project. | `list(any)` | `[]` | no |\n| \u003ca name=\"input_name\"\u003e\u003c/a\u003e [name](#input\\_name) | The projects name. | `string` | n/a | yes |\n| \u003ca name=\"input_queued_timeout\"\u003e\u003c/a\u003e [queued\\_timeout](#input\\_queued\\_timeout) | How long in minutes, from 5 to 480 (8 hours), a build is allowed to be queued before it times out.The default is 8 hours. | `number` | `480` | no |\n| \u003ca name=\"input_s3_logs\"\u003e\u003c/a\u003e [s3\\_logs](#input\\_s3\\_logs) | Configuration for the builds to store log data to S3. | `any` | `{}` | no |\n| \u003ca name=\"input_s3_logs_encryption_disabled\"\u003e\u003c/a\u003e [s3\\_logs\\_encryption\\_disabled](#input\\_s3\\_logs\\_encryption\\_disabled) | Set to true if you do not want S3 logs encrypted. | `string` | `true` | no |\n| \u003ca name=\"input_s3_logs_location\"\u003e\u003c/a\u003e [s3\\_logs\\_location](#input\\_s3\\_logs\\_location) | The name of the S3 bucket and the path prefix for S3 logs. Must be set if status is ENABLED, otherwise it must be empty. | `string` | `null` | no |\n| \u003ca name=\"input_s3_logs_status\"\u003e\u003c/a\u003e [s3\\_logs\\_status](#input\\_s3\\_logs\\_status) | Current status of logs in S3 for a build project. Valid values: `ENABLED`, `DISABLED.` | `string` | `\"DISABLED\"` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | A mapping of tags to assign to the resource. | `map(string)` | `{}` | no |\n| \u003ca name=\"input_vpc_config\"\u003e\u003c/a\u003e [vpc\\_config](#input\\_vpc\\_config) | Configuration for the builds to run inside a VPC. | `any` | `{}` | no |\n| \u003ca name=\"input_vpc_config_security_group_ids\"\u003e\u003c/a\u003e [vpc\\_config\\_security\\_group\\_ids](#input\\_vpc\\_config\\_security\\_group\\_ids) | The security group IDs to assign to running builds. | `list(string)` | `[]` | no |\n| \u003ca name=\"input_vpc_config_subnets\"\u003e\u003c/a\u003e [vpc\\_config\\_subnets](#input\\_vpc\\_config\\_subnets) | The subnet IDs within which to run builds. | `list(string)` | `[]` | no |\n| \u003ca name=\"input_vpc_config_vpc_id\"\u003e\u003c/a\u003e [vpc\\_config\\_vpc\\_id](#input\\_vpc\\_config\\_vpc\\_id) | The ID of the VPC within which to run builds. | `string` | `null` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_arn\"\u003e\u003c/a\u003e [arn](#output\\_arn) | The ARN of the CodeBuild project |\n| \u003ca name=\"output_id\"\u003e\u003c/a\u003e [id](#output\\_id) | The name (if imported via name) or ARN (if created via Terraform or imported via ARN) of the CodeBuild project. |\n| \u003ca name=\"output_name\"\u003e\u003c/a\u003e [name](#output\\_name) | The name of the CodeBuild project |\n| \u003ca name=\"output_service_role_arn\"\u003e\u003c/a\u003e [service\\_role\\_arn](#output\\_service\\_role\\_arn) | Amazon Resource Name (ARN) of the Service Role for CodeBuild. |\n| \u003ca name=\"output_service_role_id\"\u003e\u003c/a\u003e [service\\_role\\_id](#output\\_service\\_role\\_id) | ID of the Service Role created for CodeBuild. |\n| \u003ca name=\"output_service_role_name\"\u003e\u003c/a\u003e [service\\_role\\_name](#output\\_service\\_role\\_name) | Name of the Service Role created for CodeBuild. |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgallard%2Fterraform-aws-codebuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flgallard%2Fterraform-aws-codebuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flgallard%2Fterraform-aws-codebuild/lists"}