Skip to content

Commit ef9b075

Browse files
authored
Merge pull request #344 from trussworks/adh-service-optional-attrs
Service Discovery optional attributes
2 parents a2010c0 + 1f5c946 commit ef9b075

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
exclude: README.m(ark)?d(own)?
2626

2727
- repo: https://github.com/igorshubovych/markdownlint-cli
28-
rev: v0.33.0
28+
rev: v0.35.0
2929
hooks:
3030
- id: markdownlint
3131

@@ -35,6 +35,6 @@ repos:
3535
- id: shell-lint
3636

3737
- repo: https://github.com/antonbabenko/pre-commit-terraform
38-
rev: v1.77.1
38+
rev: v1.81.0
3939
hooks:
4040
- id: terraform_fmt

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ No modules.
179179
| manage\_ecs\_security\_group | Enable creation and management of the ECS security group and rules | `bool` | `true` | no |
180180
| name | The service name. | `string` | n/a | yes |
181181
| nlb\_subnet\_cidr\_blocks | List of Network Load Balancer (NLB) CIDR blocks to allow traffic from. | `list(string)` | `[]` | no |
182-
| service\_registries | List of service registry objects as per <https://www.terraform.io/docs/providers/aws/r/ecs_service.html#service_registries-1>. List can only have a single object until <https://github.com/terraform-providers/terraform-provider-aws/issues/9573> is resolved. | ```list(object({ registry_arn = string container_name = string container_port = number port = number }))``` | `[]` | no |
182+
| service\_registries | List of service registry objects as per <https://www.terraform.io/docs/providers/aws/r/ecs_service.html#service_registries-1>. List can only have a single object until <https://github.com/terraform-providers/terraform-provider-aws/issues/9573> is resolved. Either provide container\_name and container\_port or port | ```list(object({ registry_arn = string container_name = optional(string) container_port = optional(number) port = optional(number) }))``` | `[]` | no |
183183
| target\_container\_name | Name of the container the Load Balancer should target. Default: {name}-{environment} | `string` | `""` | no |
184184
| tasks\_desired\_count | The number of instances of a task definition. | `number` | `1` | no |
185185
| tasks\_maximum\_percent | Upper limit on the number of running tasks. | `number` | `200` | no |

variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ variable "hello_world_container_ports" {
224224
}
225225

226226
variable "service_registries" {
227-
description = "List of service registry objects as per <https://www.terraform.io/docs/providers/aws/r/ecs_service.html#service_registries-1>. List can only have a single object until <https://github.com/terraform-providers/terraform-provider-aws/issues/9573> is resolved."
227+
description = "List of service registry objects as per <https://www.terraform.io/docs/providers/aws/r/ecs_service.html#service_registries-1>. List can only have a single object until <https://github.com/terraform-providers/terraform-provider-aws/issues/9573> is resolved. Either provide container_name and container_port or port"
228228
type = list(object({
229229
registry_arn = string
230-
container_name = string
231-
container_port = number
232-
port = number
230+
container_name = optional(string)
231+
container_port = optional(number)
232+
port = optional(number)
233233
}))
234234
default = []
235235
}

0 commit comments

Comments
 (0)