hashicorp/terraform-aws-consul

How to remove Consul

Opened this issue · 2 comments

Why after applying consul via Terraform to AWS and later removed, I still get the consul service back up? (which I don't need anymore)

module "consul" {
  source = "hashicorp/consul/aws"
  version = "0.3.3"

  aws_region  = "us-east-1" # should match provider region
  num_servers = "3"
}

How to remove as this is running and I don't want it

$ terraform destroy : Destroy complete! Resources: 5 destroyed.

But I had to manually delete each of the consul services on AWS console ??? But afterward Consul Cluster launches itself again...

Hi @scheung38! Thanks for the report. I will transfer this issue over to the https://github.com/hashicorp/terraform-aws-consul repo where that module lives.

Just following from tutorial:

https://learn.hashicorp.com/terraform/getting-started/modules

Thanks @alvin-huang

But now Consul cluster cannot be removed, and terraform apply :

Error: Error applying plan:

1 error(s) occurred:

  • aws_vpc.main: 1 error(s) occurred:

  • aws_vpc.main: Error creating VPC: VpcLimitExceeded: The maximum number of VPCs has been reached.
    status code: 400, request id: 58f95039-3010-4478-9fa3-398e2d240934

so destroy didnt work and now apply also does not work either as Consul Cluster cannot be removed???