diff --git a/README.md b/README.md index c39089e..60d01f4 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ Available targets: | Name | Source | Version | |------|--------|---------| -| [codebuild](#module\_codebuild) | cloudposse/codebuild/aws | 0.35.0 | +| [codebuild](#module\_codebuild) | cloudposse/codebuild/aws | 0.36.0 | | [codebuild\_label](#module\_codebuild\_label) | cloudposse/label/null | 0.24.1 | | [codepipeline\_assume\_role\_label](#module\_codepipeline\_assume\_role\_label) | cloudposse/label/null | 0.24.1 | | [codepipeline\_label](#module\_codepipeline\_label) | cloudposse/label/null | 0.24.1 | @@ -283,7 +283,7 @@ Available targets: | [ecs\_cluster\_name](#input\_ecs\_cluster\_name) | ECS Cluster Name | `string` | n/a | yes | | [enabled](#input\_enabled) | Set to false to prevent the module from creating any resources | `bool` | `null` | no | | [environment](#input\_environment) | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' | `string` | `null` | no | -| [environment\_variables](#input\_environment\_variables) | A list of maps, that contain both the key 'name' and the key 'value' to be used as additional environment variables for the build |
list(object(| `[]` | 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' |
{
name = string
value = string
}))
list(object(| `[]` | no | | [github\_oauth\_token](#input\_github\_oauth\_token) | GitHub OAuth Token with permissions to access private repositories | `string` | `""` | no | | [github\_webhook\_events](#input\_github\_webhook\_events) | A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/) | `list(string)` |
{
name = string
value = string
type = string
}))
[| no | | [github\_webhooks\_token](#input\_github\_webhooks\_token) | GitHub OAuth Token with permissions to create webhooks. If not provided, can be sourced from the `GITHUB_TOKEN` environment variable | `string` | `""` | no | diff --git a/docs/terraform.md b/docs/terraform.md index def7acd..650ca5d 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -21,7 +21,7 @@ | Name | Source | Version | |------|--------|---------| -| [codebuild](#module\_codebuild) | cloudposse/codebuild/aws | 0.35.0 | +| [codebuild](#module\_codebuild) | cloudposse/codebuild/aws | 0.36.0 | | [codebuild\_label](#module\_codebuild\_label) | cloudposse/label/null | 0.24.1 | | [codepipeline\_assume\_role\_label](#module\_codepipeline\_assume\_role\_label) | cloudposse/label/null | 0.24.1 | | [codepipeline\_label](#module\_codepipeline\_label) | cloudposse/label/null | 0.24.1 | @@ -79,7 +79,7 @@ | [ecs\_cluster\_name](#input\_ecs\_cluster\_name) | ECS Cluster Name | `string` | n/a | yes | | [enabled](#input\_enabled) | Set to false to prevent the module from creating any resources | `bool` | `null` | no | | [environment](#input\_environment) | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' | `string` | `null` | no | -| [environment\_variables](#input\_environment\_variables) | A list of maps, that contain both the key 'name' and the key 'value' to be used as additional environment variables for the build |
"push"
]
list(object(| `[]` | 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' |
{
name = string
value = string
}))
list(object(| `[]` | no | | [github\_oauth\_token](#input\_github\_oauth\_token) | GitHub OAuth Token with permissions to access private repositories | `string` | `""` | no | | [github\_webhook\_events](#input\_github\_webhook\_events) | A list of events which should trigger the webhook. See a list of [available events](https://developer.github.com/v3/activity/events/types/) | `list(string)` |
{
name = string
value = string
type = string
}))
[| no | | [github\_webhooks\_token](#input\_github\_webhooks\_token) | GitHub OAuth Token with permissions to create webhooks. If not provided, can be sourced from the `GITHUB_TOKEN` environment variable | `string` | `""` | no | diff --git a/examples/complete/fixtures.us-east-2.tfvars b/examples/complete/fixtures.us-east-2.tfvars index 608533e..2a96301 100644 --- a/examples/complete/fixtures.us-east-2.tfvars +++ b/examples/complete/fixtures.us-east-2.tfvars @@ -108,14 +108,17 @@ environment_variables = [ { name = "APP_URL" value = "https://app.example.com" + type = "PLAINTEXT" }, { name = "COMPANY_NAME" value = "Cloud Posse" + type = "PLAINTEXT" }, { name = "TIME_ZONE" value = "America/Los_Angeles" + type = "PLAINTEXT" } ] diff --git a/examples/complete/variables.tf b/examples/complete/variables.tf index 1354fb8..0dbe4f3 100644 --- a/examples/complete/variables.tf +++ b/examples/complete/variables.tf @@ -183,9 +183,10 @@ variable "environment_variables" { { name = string value = string + type = string })) - description = "A list of maps, that contain both the key 'name' and the key 'value' to be used as additional environment variables for the build" + description = "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'" } variable "webhook_enabled" { diff --git a/main.tf b/main.tf index 0c1f11f..2db51f7 100644 --- a/main.tf +++ b/main.tf @@ -208,7 +208,7 @@ data "aws_region" "default" { module "codebuild" { source = "cloudposse/codebuild/aws" - version = "0.35.0" + version = "0.36.0" build_image = var.build_image build_compute_type = var.build_compute_type build_timeout = var.build_timeout diff --git a/variables.tf b/variables.tf index e8e25a6..d016cae 100644 --- a/variables.tf +++ b/variables.tf @@ -131,10 +131,11 @@ variable "environment_variables" { { name = string value = string + type = string })) default = [] - description = "A list of maps, that contain both the key 'name' and the key 'value' to be used as additional environment variables for the build" + description = "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'" } variable "webhook_enabled" {
"push"
]