billions-scientist-31826
03/09/2020, 8:00 PMOutput<T>
to a string?tall-librarian-49374
03/09/2020, 8:03 PMOutput
may only resolve after the deployment is done. You usually want to use apply
to manipulate the value.billions-scientist-31826
03/09/2020, 8:06 PMconst caClusterName = "<http://k8s.io/cluster-autoscaler/|k8s.io/cluster-autoscaler/>" + clusterObj.eksCluster.name.apply(n => n);
...
autoScalingGroupTags: {
"<http://k8s.io/cluster-autoscaler/enabled|k8s.io/cluster-autoscaler/enabled>": "true",
[ caClusterName ] : "true"
},``
boundless-airport-99052
03/10/2020, 8:34 AMautoScalingGroupTags: clusterObj.eksCluster.name.apply(clusterName => ({
"<http://k8s.io/cluster-autoscaler/enabled|k8s.io/cluster-autoscaler/enabled>": "true",
[ "<http://k8s.io/cluster-autoscaler/|k8s.io/cluster-autoscaler/>" + clusterName ] : "true"
}),