diff --git a/README.md b/README.md index 3021076..212b7fd 100644 --- a/README.md +++ b/README.md @@ -65,10 +65,9 @@ Available targets: help Help screen help/all Display help for all targets help/short This help short screen - lint Lint terraform code + lint: Lint terraform code ``` - ## Inputs | Name | Description | Type | Default | Required | @@ -79,6 +78,7 @@ Available targets: | container_memory | The amount of memory (in MiB) to allow the container to use. This is a hard limit, if the container attempts to exceed the container_memory, the container is killed. This field is optional for Fargate launch type and the total amount of container_memory of all containers in a task will need to be lower than the task memory value | string | `256` | no | | container_memory_reservation | The amount of memory (in MiB) to reserve for the container. If container needs to exceed this threshold, it can do so up to the set container_memory hard limit | string | `128` | no | | container_name | The name of the container. Up to 255 characters ([a-z], [A-Z], [0-9], -, _ allowed) | string | - | yes | +| dns_servers | Container DNS servers. This is a list of strings specifying the IP addresses of the DNS servers. | list | `` | no | | entrypoint | The entry point that is passed to the container | list | `` | no | | environment | The environment variables to pass to the container. This is a list of maps | list | `` | no | | essential | Determines whether all other containers in a task are stopped, if this container fails or stops for any reason. Due to how Terraform type casts booleans in json it is required to double quote this value | string | `true` | no | @@ -186,7 +186,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow. ## Copyright -Copyright © 2017-2018 [Cloud Posse, LLC](https://cpco.io/copyright) +Copyright © 2017-2019 [Cloud Posse, LLC](https://cpco.io/copyright) diff --git a/docs/targets.md b/docs/targets.md index 3d4be2a..c80c067 100644 --- a/docs/targets.md +++ b/docs/targets.md @@ -5,6 +5,6 @@ Available targets: help Help screen help/all Display help for all targets help/short This help short screen - lint Lint terraform code + lint: Lint terraform code ``` diff --git a/docs/terraform.md b/docs/terraform.md index 0ec0064..bbc340b 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -1,4 +1,3 @@ - ## Inputs | Name | Description | Type | Default | Required | @@ -9,6 +8,7 @@ | container_memory | The amount of memory (in MiB) to allow the container to use. This is a hard limit, if the container attempts to exceed the container_memory, the container is killed. This field is optional for Fargate launch type and the total amount of container_memory of all containers in a task will need to be lower than the task memory value | string | `256` | no | | container_memory_reservation | The amount of memory (in MiB) to reserve for the container. If container needs to exceed this threshold, it can do so up to the set container_memory hard limit | string | `128` | no | | container_name | The name of the container. Up to 255 characters ([a-z], [A-Z], [0-9], -, _ allowed) | string | - | yes | +| dns_servers | Container DNS servers. This is a list of strings specifying the IP addresses of the DNS servers. | list | `` | no | | entrypoint | The entry point that is passed to the container | list | `` | no | | environment | The environment variables to pass to the container. This is a list of maps | list | `` | no | | essential | Determines whether all other containers in a task are stopped, if this container fails or stops for any reason. Due to how Terraform type casts booleans in json it is required to double quote this value | string | `true` | no | diff --git a/main.tf b/main.tf index 62d2f72..7f51d52 100644 --- a/main.tf +++ b/main.tf @@ -12,6 +12,7 @@ locals { workingDirectory = "${var.working_directory}" readonlyRootFilesystem = "${var.readonly_root_filesystem}" mountPoints = "${var.mount_points}" + dnsServers = "${var.dns_servers}" portMappings = "${var.port_mappings}" diff --git a/variables.tf b/variables.tf index 7498f0d..e8d58d4 100644 --- a/variables.tf +++ b/variables.tf @@ -113,3 +113,9 @@ variable "mount_points" { # } #] } + +variable "dns_servers" { + type = "list" + description = "Container DNS servers. This is a list of strings specifying the IP addresses of the DNS servers." + default = [] +}