You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran the import script on a Deployment that contains an environment variable containing a JSON value:
{ "foo": [ { "bar": "baz" } ]}
This produces a generated.tf without escaping the quotes, e.g.:
resource"astro_deployment""deployment_clxx715jq0boq01k24diwbx3g" {
...environment_variables=[{
name ="MY_KEY"
value ="{ "foo": [ { "bar": "baz" } ]}"
is_secret =false
}]
...
}
Then running terraform plan shows an error:
$ terraform plan
╷
│ Error: Missing attribute separator
│
│ on generated.tf line 1526, in resource "astro_deployment" "deployment_clxx715jq0boq01k24diwbx3g":
│ 1524: environment_variables = [{
│ 1525: name = "MY_KEY"
│ 1526: value = "{ "foo": [ { "bar": "baz" } ]}"
│
│ Expected a newline or comma to mark the beginning of the next attribute.
╵
I obfuscated several values but can provide real values if needed. JSON values should be escaped to avoid breaking Terraform code.
Steps To Reproduce
No response
Acceptance Criteria
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Description
I ran the import script on a Deployment that contains an environment variable containing a JSON value:
This produces a generated.tf without escaping the quotes, e.g.:
Then running
terraform plan
shows an error:I obfuscated several values but can provide real values if needed. JSON values should be escaped to avoid breaking Terraform code.
Steps To Reproduce
No response
Acceptance Criteria
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: