I was having problems with this command: $ terraform plan -generate-config-out=generated.tf "Error: Too many command line arguments" to fix it, I had to quote generated.tf: $ terraform plan -generate-config-out="generated.tf"
Hi there and thanks for reaching out! Terraform state files map real world resources to your Terraform configuration (developer.hashicorp.com/terraform/language/state). To create resources in different regions, you use modules and pass providers explicitly to the child module (developer.hashicorp.com/terraform/language/modules/develop/providers#passing-providers-explicitly)
Very clear presentation. Thank you!
I was having problems with this command:
$ terraform plan -generate-config-out=generated.tf
"Error: Too many command line arguments"
to fix it, I had to quote generated.tf:
$ terraform plan -generate-config-out="generated.tf"
Thanks for also coming back to show what you did wrong!
That was a great overview!
Can I used same terraform state file to create resources in different regions. Pl answer Thanks in advance. 🙏
Hi there and thanks for reaching out! Terraform state files map real world resources to your Terraform configuration (developer.hashicorp.com/terraform/language/state). To create resources in different regions, you use modules and pass providers explicitly to the child module (developer.hashicorp.com/terraform/language/modules/develop/providers#passing-providers-explicitly)
Love this , thanks