You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No more than 1 "service_registries" blocks are allowed
Error: Unsupported attribute
on ../modules/ecs_service/main.tf line 78, in resource "aws_ecs_service" "service":
78: registry_arn = service_registries.value.registry_arn
|----------------
| service_registries.value is ""
This value does not have any attributes.
Error: Unsupported attribute
on ../modules/ecs_service/main.tf line 78, in resource "aws_ecs_service" "service":
78: registry_arn = service_registries.value.registry_arn
|----------------
| service_registries.value is ""
This value does not have any attributes.
Error: Unsupported attribute
on ../modules/ecs_service/main.tf line 78, in resource "aws_ecs_service" "service":
78: registry_arn = service_registries.value.registry_arn
|----------------
| service_registries.value is ""
This value does not have any attributes.
Error: Unsupported attribute
on ../modules/ecs_service/main.tf line 78, in resource "aws_ecs_service" "service":
78: registry_arn = service_registries.value.registry_arn
|----------------
| service_registries.value is "arn:aws:servicediscovery:us-east-2:XXXXXXXX"
This value does not have any attributes.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 79, in resource "aws_ecs_service" "service":
79: port = lookup(service_registries.value, "port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 79, in resource "aws_ecs_service" "service":
79: port = lookup(service_registries.value, "port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 79, in resource "aws_ecs_service" "service":
79: port = lookup(service_registries.value, "port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 79, in resource "aws_ecs_service" "service":
79: port = lookup(service_registries.value, "port", null)
|----------------
| service_registries.value is "arn:aws:servicediscovery:us-east-2:XXXXXXXX"
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 80, in resource "aws_ecs_service" "service":
80: container_name = lookup(service_registries.value, "container_name", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 80, in resource "aws_ecs_service" "service":
80: container_name = lookup(service_registries.value, "container_name", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 80, in resource "aws_ecs_service" "service":
80: container_name = lookup(service_registries.value, "container_name", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 80, in resource "aws_ecs_service" "service":
80: container_name = lookup(service_registries.value, "container_name", null)
|----------------
| service_registries.value is "arn:aws:servicediscovery:us-east-2:XXXXXXXX"
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 81, in resource "aws_ecs_service" "service":
81: container_port = lookup(service_registries.value, "container_port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 81, in resource "aws_ecs_service" "service":
81: container_port = lookup(service_registries.value, "container_port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 81, in resource "aws_ecs_service" "service":
81: container_port = lookup(service_registries.value, "container_port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 81, in resource "aws_ecs_service" "service":
81: container_port = lookup(service_registries.value, "container_port", null)
|----------------
| service_registries.value is "arn:aws:servicediscovery:us-east-2:XXXXXXXX"
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
The text was updated successfully, but these errors were encountered:
@tanvirahmed2707 I have been using the module on version 1.0.6. Please let me know if it also works for you. Please reopen if it is still not working for you
I'm trying to use the following but getting error no matter what I do.
Input:
service_registries = {
"registry_arn" = service_discovery_service.arn
"port" = ""
"container_port" = ""
"container_name" = ""
}
Error:
Error: Too many service_registries blocks
on line 0:
(source code not available)
No more than 1 "service_registries" blocks are allowed
Error: Unsupported attribute
on ../modules/ecs_service/main.tf line 78, in resource "aws_ecs_service" "service":
78: registry_arn = service_registries.value.registry_arn
|----------------
| service_registries.value is ""
This value does not have any attributes.
Error: Unsupported attribute
on ../modules/ecs_service/main.tf line 78, in resource "aws_ecs_service" "service":
78: registry_arn = service_registries.value.registry_arn
|----------------
| service_registries.value is ""
This value does not have any attributes.
Error: Unsupported attribute
on ../modules/ecs_service/main.tf line 78, in resource "aws_ecs_service" "service":
78: registry_arn = service_registries.value.registry_arn
|----------------
| service_registries.value is ""
This value does not have any attributes.
Error: Unsupported attribute
on ../modules/ecs_service/main.tf line 78, in resource "aws_ecs_service" "service":
78: registry_arn = service_registries.value.registry_arn
|----------------
| service_registries.value is "arn:aws:servicediscovery:us-east-2:XXXXXXXX"
This value does not have any attributes.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 79, in resource "aws_ecs_service" "service":
79: port = lookup(service_registries.value, "port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 79, in resource "aws_ecs_service" "service":
79: port = lookup(service_registries.value, "port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 79, in resource "aws_ecs_service" "service":
79: port = lookup(service_registries.value, "port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 79, in resource "aws_ecs_service" "service":
79: port = lookup(service_registries.value, "port", null)
|----------------
| service_registries.value is "arn:aws:servicediscovery:us-east-2:XXXXXXXX"
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 80, in resource "aws_ecs_service" "service":
80: container_name = lookup(service_registries.value, "container_name", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 80, in resource "aws_ecs_service" "service":
80: container_name = lookup(service_registries.value, "container_name", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 80, in resource "aws_ecs_service" "service":
80: container_name = lookup(service_registries.value, "container_name", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 80, in resource "aws_ecs_service" "service":
80: container_name = lookup(service_registries.value, "container_name", null)
|----------------
| service_registries.value is "arn:aws:servicediscovery:us-east-2:XXXXXXXX"
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 81, in resource "aws_ecs_service" "service":
81: container_port = lookup(service_registries.value, "container_port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 81, in resource "aws_ecs_service" "service":
81: container_port = lookup(service_registries.value, "container_port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 81, in resource "aws_ecs_service" "service":
81: container_port = lookup(service_registries.value, "container_port", null)
|----------------
| service_registries.value is ""
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
Error: Invalid function argument
on ../modules/ecs_service/main.tf line 81, in resource "aws_ecs_service" "service":
81: container_port = lookup(service_registries.value, "container_port", null)
|----------------
| service_registries.value is "arn:aws:servicediscovery:us-east-2:XXXXXXXX"
Invalid value for "inputMap" parameter: lookup() requires a map as the first
argument.
The text was updated successfully, but these errors were encountered: