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
{{ message }}
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
If I am writing a template with conditions, on compile Goformation automatically processes the condition into a true/false output. For example, this:
template.Parameters["Environment"] =¶meter{
Type: "String",
Description: "The type of environment the VPC will host",
Default: "dev",
AllowedValues: []string{"dev", "prod"},
}
template.Conditions["IsProduction"] =cloudformation.Equals(cloudformation.Ref("Environment"), "prod")
produces:
"Conditions": {
"IsProduction": false
},
"Parameters": {
"Environment": {
"AllowedValues": [
"dev",
"prod"
],
"Default": "dev",
"Description": "The type of environment the VPC will host",
"Type": "String"
},
While I would like it to produce this:
"Conditions": {
"IsProduction": {
"Fn::Equals": [
{"Ref": "Environment"},
"prod"
]
},
"Parameters": {
"Environment": {
"AllowedValues": [
"dev",
"prod"
],
"Default": "dev",
"Description": "The type of environment the VPC will host",
"Type": "String"
},
The text was updated successfully, but these errors were encountered:
If I am writing a template with conditions, on compile Goformation automatically processes the condition into a true/false output. For example, this:
produces:
While I would like it to produce this:
The text was updated successfully, but these errors were encountered: