hashicorp / learn-nomad-sd

Companion repo for the HashiCorp Learn guide: Deploy an App with Nomad Service Discovery
https://learn.hashicorp.com/tutorials/nomad/service-discovery-app-deployment
Mozilla Public License 2.0
1 stars 2 forks source link

terraform apply does not work #3

Open dmitrytrager opened 1 year ago

dmitrytrager commented 1 year ago

When using this tutorial following error happens:

Error: Unsupported argument │ │ on main.tf line 3, in module "nomad-cluster": │ 3: ami = var.ami │ │ An argument named "ami" is not expected here. ╵ ╷ │ Error: Unsupported argument │ │ on main.tf line 4, in module "nomad-cluster": │ 4: client_count = var.client_count │ │ An argument named "client_count" is not expected here. ╵ ╷ │ Error: Unsupported argument │ │ on main.tf line 5, in module "nomad-cluster": │ 5: client_instance_type = var.client_instance_type │ │ An argument named "client_instance_type" is not expected here.

And the same for other variables

dmitrytrager commented 11 months ago

In order this to work I had to change remove module here to github.com/hashicorp/learn-nomad-cluster-setup/aws. But now it is failing to get shared script from remote module

tunzor commented 10 months ago

Thanks for letting us know! We just pushed an update that points to the aws folder in the module repo and updated that module repo to fix the upstream issue. This repo should be okay now so feel free to try it out again.