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
After testing with this configuration, it seems that the only resources to be subject to this bug are consul_intention, consul_node and consul_service:
resource "consul_agent_service" "app" {
address = "www.google.com"
name = "google"
port = 80
tags = ["tag0", "tag1"]
}
resource "consul_catalog_entry" "app" {
address = "192.168.10.10"
node = "foobar"
service = {
address = "127.0.0.1"
id = "redis1"
name = "redis"
port = 8000
tags = ["master", "v1"]
}
}
resource "consul_intention" "database" {
source_name = "api"
destination_name = "db"
action = "allow"
}
resource "consul_keys" "app" {
# Set the CNAME of our load balancer as a key
key {
path = "service/app/elb_address"
value = "coucou"
}
}
resource "consul_key_prefix" "myapp_config" {
# Prefix to add to prepend to all of the subkey names below.
path_prefix = "myapp/config/"
subkeys = {
"elb_cname" = "coucou"
}
}
resource "consul_node" "foobar" {
address = "192.168.10.10"
name = "foobar"
}
resource "consul_prepared_query" "myapp-query" {
name = "myquery"
only_passing = true
near = "_agent"
service = "myapp"
tags = ["active", "!standby"]
failover {
nearest_n = 3
datacenters = ["us-west1", "us-east-2", "asia-east1"]
}
dns {
ttl = "30s"
}
}
resource "consul_service" "google" {
name = "google"
node = "${consul_node.compute.name}"
port = 80
tags = ["tag0"]
}
resource "consul_node" "compute" {
name = "compute-google"
address = "www.google.com"
}
When a
consul_intention
resource is deleted manually, subsequent plans panic when reading this resource.This is very similar to #69
As far as I can tell after a quick glance at other resources, they seem not to have this bug although a more in-depth check should be done.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: