# typescript


01/05/2022, 11:12 AM
seems to work a bit differently than I thought. so basically using it like this seems to work:
Copy code => {
  const nodegroup = new eks.NodeGroup(`${name}-nodegroup`, {
    labels: {
      role: 'managed-nodes',
    instanceType: 't2.medium',
    desiredCapacity: 1,
    minSize: 1,
    maxSize: 3,
    autoScalingGroupTags: {
      ['<|>']: 'true',
      [`<${eksClusterName}`|${eksClusterName}`>]: 'owned',
------------ Original: Hi! Im trying to setup an eks cluster with k8s cluster autoscaler. To get this to work, I need to tag the nodegroup with:
Copy code
autoScalingGroupTags: {
    ['<|>']: 'true',
    [`<${}`|${}`>]: 'owned',
However, the operation fails since
Template format error: YAML not well-formed
Checking details shows that
is never expanded to the name, instead it becomes:
<|> [toString] on an [Output<T>] is not supported....
Im creating the cluster with
Copy code
const cluster = new eks.Cluster(name, { optionsĀ });
But the eks cluster dont just get the name
, but
The number seems to be generated on creation, so I would really need some way of extracting it so I can use it in my tag. I have tried `pulumi.interpolate`${}`` and
Copy code => `<${v}`|${v}`>)
but they both fail with
error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
Any ideas?