diff --git a/examples/hcp-ec2-demo/providers.tf b/examples/hcp-ec2-demo/providers.tf index 4b08779..74b9a23 100644 --- a/examples/hcp-ec2-demo/providers.tf +++ b/examples/hcp-ec2-demo/providers.tf @@ -6,11 +6,15 @@ terraform { } hcp = { source = "hashicorp/hcp" - version = ">= 0.15.0" + version = ">= 0.18.0" } } + + provider_meta "hcp" { + module_name = "hcp-consul" + } } provider "aws" { region = var.region -} \ No newline at end of file +} diff --git a/examples/hcp-eks-demo/providers.tf b/examples/hcp-eks-demo/providers.tf index fe97d49..e1682f1 100644 --- a/examples/hcp-eks-demo/providers.tf +++ b/examples/hcp-eks-demo/providers.tf @@ -6,7 +6,7 @@ terraform { } hcp = { source = "hashicorp/hcp" - version = ">= 0.15.0" + version = ">= 0.18.0" } kubernetes = { source = "hashicorp/kubernetes" @@ -21,6 +21,10 @@ terraform { version = ">= 1.11.3" } } + + provider_meta "hcp" { + module_name = "hcp-consul" + } } provider "aws" { diff --git a/main.tf b/main.tf index 85f54f9..9c1cc45 100644 --- a/main.tf +++ b/main.tf @@ -3,13 +3,17 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "~> 3.43" + version = ">= 3.43.0" } hcp = { source = "hashicorp/hcp" - version = ">= 0.15.0" + version = ">= 0.18.0" } } + + provider_meta "hcp" { + module_name = "hcp-consul" + } } locals { diff --git a/test/examples_test.go b/test/examples_test.go index e428ca2..2f9649e 100644 --- a/test/examples_test.go +++ b/test/examples_test.go @@ -26,10 +26,6 @@ func TestTerraform_EC2DemoExample(t *testing.T) { }) t.Cleanup(func() { - // Set Vars to nil because the destroy can fail validation based on - // variables provided, such as length of an identifier, and the variables - // are not necessary for a destroy operation. - terraformOptions.Vars = nil terraform.Destroy(t, terraformOptions) }) @@ -102,10 +98,6 @@ func TestTerraform_EKSDemoExample(t *testing.T) { }) t.Cleanup(func() { - // Set Vars to nil because the destroy can fail validation based on - // variables provided, such as length of an identifier, and the variables - // are not necessary for a destroy operation. - terraformOptions.Vars = nil terraform.Destroy(t, terraformOptions) })