I'm trying to import an existing dev stack as part of the start of my journey towards everything being in Pulumi. However, I've hit something I can't solve. I'm using pulumi import aws
alb/targetGroupTargetGroup to bring in an ALB Target Group for an ECS Fargate Task. It gets the state as it shows in Pulumi Cloud, but fails to create a code block, instead giving me this error:
error: anonymous.pp
30,25 31,14 cannot assign expression of type (null) to location of type list( { enableUnhealthyConnectionTermination: bool | output(bool) }
| output({ enableUnhealthyConnectionTermination: bool }))
| output(list({ enableUnhealthyConnectionTermination: bool }))?: ;
However, from my research, ALB target groups don't have that value, only network load balancer TGs:
https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health.html
Any ideas on what I'm doing wrong? Is there somewhere in the aws cli I can set this boolean on the TG so it will import? There's definitely nowhere in the console.