Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service registries is not working #3

Closed
tanvirahmed2707 opened this issue Sep 4, 2019 · 2 comments
Closed

service registries is not working #3

tanvirahmed2707 opened this issue Sep 4, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@tanvirahmed2707
Copy link

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.

@jnonino
Copy link
Member

jnonino commented Sep 6, 2019

This issue may be related with this issue on Terraform AWS Provider.
hashicorp/terraform-provider-aws#9573

@jnonino jnonino self-assigned this Sep 6, 2019
@jnonino jnonino added the bug Something isn't working label Sep 6, 2019
@jnonino
Copy link
Member

jnonino commented Nov 8, 2019

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants