hello, im trying to add `autoScalingGroupTags` to ...
# general
q
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
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
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
Great - thanks - mind dropping a note on that on the issue so we can investigate?
q
sure will do
i updated this ticket with a new comment
g
The tag issue is fixed in 0.18.4 of the
aws
package.