mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-08 16:35:25 -04:00
escape value for -generate-config-out arg
This commit is contained in:
parent
6e1b6e4462
commit
f2ee254bb7
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue