Open dyba opened 1 year ago
Hi,
I need to clone and check execution but so far noticed that in explicit Terraform invocation was used web_hostame
but in Terratest is referenced web_hostname
, web_hostame != web_hostname
@denis256 Thanks for looking at this. Actually, I made a typo with the manual Terraform command I wrote above. It should be:
terraform init
terraform validate
# hostname, not hostame
terraform plan -var web_hostname='sample.some-site.com' -var web_hostname_alts='["www.sample.some-site.com"]' -out plan.txt
terraform apply plan.txt
These shell commands work fine. The correct variable name is web_hostname
. The problem happens when I run Terratest.
Hello!
I'm at my rope's end and can't figure out why the same Terraform file works fine when I deploy with Terraform, but fails when I deploy with Terragrunt.
In my
main.tf
file, I am creating a Route53 record:With Terraform, I run the commands to deploy this:
Success! 🥳
Now with Terragrunt:
Ok, here we go...
💥 😱
But it works with Terraform!
Context
Terraform version: 1.3.3 Go: 1.17 Terratest: v0.40.24
I'd appreciate any pointers to what I might be doing wrong. Thank you! 🙏
Sample Code To Reproduce The Problem