Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/launchbynttdata/tf-aws-module_collection-codebuild
https://github.com/launchbynttdata/tf-aws-module_collection-codebuild
aws collection terraform
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/launchbynttdata/tf-aws-module_collection-codebuild
- Owner: launchbynttdata
- License: apache-2.0
- Created: 2024-05-02T20:56:02.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T16:48:32.000Z (3 months ago)
- Last Synced: 2024-11-09T06:07:18.589Z (3 months ago)
- Topics: aws, collection, terraform
- Language: HCL
- Size: 192 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | ~> 1.0 |
| [aws](#requirement\_aws) | ~> 5.0 |## Providers
No providers.
## Modules
| Name | Source | Version |
|------|--------|---------|
| [codebuild](#module\_codebuild) | git::https://github.com/launchbynttdata/terraform-aws-codebuild | 1.0.0 |
| [resource\_names](#module\_resource\_names) | terraform.registry.launch.nttdata.com/module_library/resource_name/launch | ~> 2.0 |## Resources
No resources.
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [name](#input\_name) | Stage action name for the CodeBuild project. | `string` | `"build"` | no |
| [logical\_product\_family](#input\_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](#input\_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](#input\_environment) | Environment in which the resource should be provisioned like dev, qa, prod etc. | `string` | `"dev"` | no |
| [environment\_number](#input\_environment\_number) | The environment count for the respective environment. Defaults to 000. Increments in value of 1 | `string` | `"000"` | no |
| [region](#input\_region) | AWS Region in which the infra needs to be provisioned | `string` | `"us-east-2"` | no |
| [resource\_number](#input\_resource\_number) | The resource count for the respective resource. Defaults to 000. Increments in value of 1 | `string` | `"000"` | no |
| [resource\_names\_map](#input\_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(|
{
name = string
max_length = optional(number, 60)
}
)){| no |
"codebuild": {
"max_length": 30,
"name": "cb"
}
}
| [codebuild\_iam](#input\_codebuild\_iam) | Additional IAM actions to add to CodeBuild IAM role. | `string` | `null` | no |
| [environment\_variables](#input\_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 |
{
name = string
value = string
type = string
}
))
| [description](#input\_description) | Short description of the CodeBuild project | `string` | `"Managed by Terraform"` | no |
| [build\_image](#input\_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](#input\_build\_compute\_type) | Instance type of the build instance | `string` | `"BUILD_GENERAL1_SMALL"` | no |
| [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 | `number` | `60` | no |
| [build\_type](#input\_build\_type) | The type of build environment, e.g. 'LINUX\_CONTAINER' or 'WINDOWS\_CONTAINER' | `string` | `"LINUX_CONTAINER"` | no |
| [privileged\_mode](#input\_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](#input\_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](#input\_source\_location) | The location of the source code from git or s3 | `string` | `""` | no |
| [artifact\_type](#input\_artifact\_type) | The build output artifact's type. Valid values for this parameter are: CODEPIPELINE, NO\_ARTIFACTS or S3 | `string` | `"CODEPIPELINE"` | no |
| [artifact\_location](#input\_artifact\_location) | Location of artifact. Applies only for artifact of type S3 | `string` | `""` | no |
| [logs\_config](#input\_logs\_config) | Configuration for the builds to store log data to CloudWatch or S3. | `any` | `{}` | no |
| [extra\_permissions](#input\_extra\_permissions) | List of action strings which will be added to IAM service account permissions. | `list(any)` | `[]` | no |
| [encryption\_enabled](#input\_encryption\_enabled) | When set to 'true' the resource will have AES256 encryption enabled by default | `bool` | `false` | no |
| [encryption\_key](#input\_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](#input\_codebuild\_projects) | List of CodeBuild projects to create. | `any` | `[]` | no |
| [pipeline\_name](#input\_pipeline\_name) | Pipeline that created the codebuild. | `string` | `null` | no |
| [secondary\_sources](#input\_secondary\_sources) | (Optional) secondary source for the codebuild project in addition to the primary location |list(object(| `[]` | no |
{
git_clone_depth = number
location = string
source_identifier = string
type = string
fetch_submodules = bool
insecure_ssl = bool
report_build_status = bool
}))
| [build\_image\_pull\_credentials\_type](#input\_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](#input\_github\_token) | (Optional) GitHub auth token environment variable (`GITHUB_TOKEN`). Required if enable\_github\_authentication=true | `string` | `""` | no |
| [github\_token\_type](#input\_github\_token\_type) | Storage type of GITHUB\_TOKEN environment variable (`PARAMETER_STORE`, `PLAINTEXT`, `SECRETS_MANAGER`) | `string` | `"SECRETS_MANAGER"` | no |
| [enable\_github\_authentication](#input\_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](#input\_create\_webhooks) | Whether to create webhooks for Github, GitHub Enterprise or Bitbucket | `bool` | `false` | no |
| [webhook\_build\_type](#input\_webhook\_build\_type) | Webhook build type. Choose between BUILD or BUILD\_BATCH | `string` | `"BUILD"` | no |
| [webhook\_filters](#input\_webhook\_filters) | Filters supported by webhook. EVENT, BASE\_REF, HEAD\_REF, ACTOR\_ACCOUNT\_ID, FILE\_PATH, COMMIT\_MESSAGE | `map(string)` | `{}` | no |
| [tags](#input\_tags) | A map of tags to add to the resources created by the module. | `map(string)` | `{}` | no |## Outputs
| Name | Description |
|------|-------------|
| [project\_name](#output\_project\_name) | Project name |
| [project\_id](#output\_project\_id) | Project ID |
| [role\_id](#output\_role\_id) | IAM Role ID |
| [role\_arn](#output\_role\_arn) | IAM Role ARN |
| [pipeline\_name](#output\_pipeline\_name) | Pipeline that created the codebuild. |
| [buildspec](#output\_buildspec) | The buildspec the CodeBuild project is using. |