https://pulumi.com logo
#general
Title
# general
q

quaint-queen-45003

06/04/2019, 8:32 PM
hello, im trying to add
autoScalingGroupTags
to my nodegroups where the key of a tag has a string substitution but i'm hitting a yaml formatting error. Code sample in thread
here's what i've got
Copy code
autoScalingGroupTags: {
                [`<http://kubernetes.io/cluster/${clusterName}`|kubernetes.io/cluster/${clusterName}`>]: "",
                "<http://k8s.io/cluster-autoscaler/enabled|k8s.io/cluster-autoscaler/enabled>": "",
}
slack formatting on this is a bit off
and im hitting a YAML formatting error when I
pulumi up
Copy code
Plan apply failed: Creating CloudFormation stack failed: ValidationError: Template format error: YAML not well-formed. (line 51, column 1)
how do i set a key in this dict with a string substitution?
w

white-balloon-205

06/05/2019, 12:35 AM
I opened https://github.com/pulumi/pulumi-kubernetes/issues/584. To check, are you intentionally passing an empty string as the value for these?
q

quaint-queen-45003

06/05/2019, 1:42 AM
Awesome, thanks. I am intentionally, passing in an empty string for a value. For context, I'm wanting to install this helm chart https://github.com/helm/charts/tree/master/stable/aws-cluster-autoscaler
It only requires that these keys are set properly
quick note - it appears that cloudformation doesn't support empty strings/null values. but even with setting a value, i still hit the yaml templating error
w

white-balloon-205

06/05/2019, 4:34 PM
Great - thanks - mind dropping a note on that on the issue so we can investigate?
q

quaint-queen-45003

06/05/2019, 4:35 PM
sure will do
i updated this ticket with a new comment
g

gentle-diamond-70147

06/26/2019, 3:26 PM
The tag issue is fixed in 0.18.4 of the
aws
package.