hashicorp / terraform-provider-consul

Terraform Consul provider
https://www.terraform.io/docs/providers/consul/
Mozilla Public License 2.0
124 stars 113 forks source link

Tagged addresses not available when creating terraform consul_service resource #393

Open Wnthr opened 7 months ago

Wnthr commented 7 months ago

Terraform Version

terraform -v

Terraform v1.7.1 on linux_amd64

Affected Resource(s)

Please list the resources as a list, for example:

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