[Section 7.43] - Error: Incorrect attribute value type #89
Unanswered
eduardocortez3
asked this question in
Q&A
Replies: 1 comment 3 replies
-
@eduardocortez3 você está passando uma lista para a propriedade value que só aceita strings. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Eu criei as subnets conforme sua demonstração na video-aula, utilizando o for_each. A minha dúvida é a seguinte, estou tentando pegar os subnet's id deste resource em um outro resource (elastic beanstalk), no campo settings deste resource (environment) o campo value só aceita valores string, tentei adicionar como você fez lá na video-aula do elastic load balancer sem sucesso, ele reclama o seguinte:
Error: Incorrect attribute value type
│
│ on elastic_beanstalk.tf line 31, in resource "aws_elastic_beanstalk_environment" "this":
│ 31: value = [aws_subnet.this["pub_a"].id, aws_subnet.this["pub_b"].id, aws_subnet.this["pub_c"].id]
│ ├────────────────
│ │ aws_subnet.this["pub_a"].id will be known only after apply
│ │ aws_subnet.this["pub_b"].id will be known only after apply
│ │ aws_subnet.this["pub_c"].id will be known only after apply
│
│ Inappropriate value for attribute "value": string required.
Beta Was this translation helpful? Give feedback.
All reactions