https://pulumi.com logo
Title
b

brash-house-42711

04/23/2021, 6:33 PM
Hi. I need to execute some code after a CloudFormation Stack (which is managed by
@pulumi/eks
module) gets created (CREATE_COMPLETE status). Is there a way to hook up to such event in Pulumi?
b

billowy-army-68599

04/23/2021, 7:28 PM
if you run the code inside an
apply()
it will run when the resource has registered. What code are you trying to run exactly?
b

brash-house-42711

04/23/2021, 7:55 PM
That's a good idea. Thanks. Need to add a couple tags on an ASG that gets created when a new node group for EKS is created. eks.NodeGroup() propagates tags from CF to ASG to instances and adding/changing/deleting a single tag results in NodeGroup update and recreation of launch configuration. I'm trying to avoid that. Just need to add a tag for cluster-autoscaler to tell it which ASGs to manage and which not to.
I was thinking I can use transformation but templateBody property of aws.cloudformation.Stack class is readonly, so I can't add a tag this way
b

billowy-army-68599

04/24/2021, 1:10 AM