Skip to content

Commit

Permalink
Add secrets variable and pass through to container_definition (#32)
Browse files Browse the repository at this point in the history
* Add secrets variable and pass through to container_definition

* Add secrets variable to README and docs/terraform.md
  • Loading branch information
jzafran authored and aknysh committed May 25, 2019
1 parent a91489e commit 7c61911
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ Available targets:
| protocol | The protocol used for the port mapping. Options: `tcp` or `udp` | string | `tcp` | no |
| repo_name | GitHub repository name of the application to be built and deployed to ECS | string | `` | no |
| repo_owner | GitHub Organization or Username | string | `` | no |
| secrets | The secrets for the task definition. This is a list of maps | list | `<list>` | no |
| stage | Stage (e.g. `prod`, `dev`, `staging`) | string | - | yes |
| tags | Map of key-value pairs to use for tags | map | `<map>` | no |
| vpc_id | The VPC ID where resources are created | string | - | yes |
Expand Down
1 change: 1 addition & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
| protocol | The protocol used for the port mapping. Options: `tcp` or `udp` | string | `tcp` | no |
| repo_name | GitHub repository name of the application to be built and deployed to ECS | string | `` | no |
| repo_owner | GitHub Organization or Username | string | `` | no |
| secrets | The secrets for the task definition. This is a list of maps | list | `<list>` | no |
| stage | Stage (e.g. `prod`, `dev`, `staging`) | string | - | yes |
| tags | Map of key-value pairs to use for tags | map | `<map>` | no |
| vpc_id | The VPC ID where resources are created | string | - | yes |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module "container_definition" {
healthcheck = "${var.healthcheck}"
environment = "${var.environment}"
port_mappings = "${var.port_mappings}"
secrets = "${var.secrets}"

log_options = {
"awslogs-region" = "${var.aws_logs_region}"
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ variable "environment" {
default = []
}

variable "secrets" {
type = "list"
description = "The secrets for the task definition. This is a list of maps"
default = []
}

variable "protocol" {
type = "string"
description = "The protocol used for the port mapping. Options: `tcp` or `udp`"
Expand Down

0 comments on commit 7c61911

Please sign in to comment.