https://pulumi.com logo
Title
c

cuddly-computer-18851

12/14/2022, 1:10 AM
When updating an AWS Autoscaling Group w/ an instanceRefresh eg
instanceRefresh: {
        strategy: "Rolling",
        preferences: {
            minHealthyPercentage: 50,
        },
        triggers: ["tag"],
    },
is there a way to get Pulumi to wait until the refresh is complete?
b

billowy-army-68599

12/14/2022, 2:03 AM
yes. You inside an
apply
you can use the AWS SDK and a waiter: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-auto-scaling/globals.html#waitforgroupinservice I don’t have an example of this for this use case, but here’s an example which might help you with syntax: https://gist.github.com/lukehoban/fd0355ed5b82386bd89c0ffe2a3c916a
c

cuddly-computer-18851

12/14/2022, 2:59 AM
Great thanks, will give that a try
for future reference / examples ^ unfortunately since the ASG doesn't return the actual instance refresh id, it's not 100% accurate ( it'll wait on any refresh ).