escape value for -generate-config-out arg

pull/35797/head
Cody Gagnon 2 years ago committed by GitHub
parent 6e1b6e4462
commit f2ee254bb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,7 +15,7 @@ Starting with Terraform's generated HCL, we recommend iterating to find your ide
To generate configuration, run `terraform plan` with the `-generate-config-out` flag and supply a new file path. Do not supply a path to an existing file, or Terraform throws an error.
```shell
$ terraform plan -generate-config-out=generated_resources.tf
$ terraform plan -generate-config-out="generated_resources.tf"
```
If any resources targeted by an `import` block do not exist in your configuration, Terraform then generates and writes configuration for those resources in `generated_resources.tf`.
@ -130,7 +130,7 @@ Terraform generates configuration for importable resources during a plan by requ
Terraform will display an error like the one below if it does not receive values for resource attributes while generating configuration.
```shell
$ terraform plan -generate-config-out=generated.tf
$ terraform plan -generate-config-out="generated.tf"
│ Error: Conflicting configuration arguments

Loading…
Cancel
Save