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

Tagged addresses not available when creating terraform consul_service resource #393

Open
Wnthr opened this issue Jan 30, 2024 · 0 comments

Comments

@Wnthr
Copy link

Wnthr commented Jan 30, 2024

Terraform Version

terraform -v

Terraform v1.7.1
on linux_amd64

Affected Resource(s)

Please list the resources as a list, for example:

  • consul_service
  • consul_agent_service

Terraform Configuration Files

resource "consul_service" "pulp_lb" {
  name = "pulp"
  id = "pulp-lb"
  tags = ["lb"]
  tagged_addresses = {}
}

Error Output

# terraform apply --var-file=/tmp/dev.tfvars
╷
│ Error: Missing required argument
│
│   on consul.tf line 15, in resource "consul_service" "pulp_lb":
│   15: resource "consul_service" "pulp_lb" {
│
│ The argument "node" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│
│   on consul.tf line 19, in resource "consul_service" "pulp_lb":
│   19:   tagged_addresses = {}
│
│ An argument named "tagged_addresses" is not expected here.
╵

Expected Behavior

tagged_addresses map should have been expected.

Actual Behavior

tagged_addresses map was not expected

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant