https://pulumi.com logo
Title
g

great-greece-44955

11/15/2021, 5:44 AM
Hello! I am frequently seeing an error message when trying to update my stack (using
pulumi up
) after correcting an issue with the configuration of an autoscaling group: error: 1 error occurred: * updating urn😛ulumi:dev::codicy-main::awsx:x:ecs:Cluster$awsxautoscaling:AutoScalingGroup$aws:cloudformation/stack:Stack::JupyterHub-AutoScalingGroup: 1 error occurred: * error updating CloudFormation stack (arn:aws:cloudformation:ap-southeast-1:415375321442:stack/jupyterhub-autoscalinggroup-586cf84/2e25ca40-45d2-11ec-af4b-0af0cb546522): ValidationError: Stack:arn:aws:cloudformation:ap-southeast-1:415375321442:stack/jupyterhub-autoscalinggroup-586cf84/2e25ca40-45d2-11ec-af4b-0af0cb546522 is in ROLLBACK_COMPLETE state and can not be updated. status code: 400, request id: 6c7e567b-4d0c-4903-afa1-876ea218fa1b Does anyone have any suggestions?
b

billowy-army-68599

11/15/2021, 5:50 AM
Hi Graham, this is unfortunately an issue with CloudFormation. you'll need to get your cloudformaiton stack into a state where it can be updated
g

great-greece-44955

11/15/2021, 5:54 AM
Thanks, @billowy-army-68599. The stack is now in the ROLLBACK_COMPLETE state. Normally, when dealing directly with CloudFormation (using a self-crafted CF template), it would be possible to update the stack at this point. But seems Pulumi doesn't want to?
b

billowy-army-68599

11/15/2021, 5:55 AM
this appears to be an artifact of this issue in the terraform provider: https://github.com/hashicorp/terraform-provider-aws/issues/5194
g

great-greece-44955

11/15/2021, 6:05 AM
I see. At the moment, all I can do is destroy the stack completely and re-create it from scratch, whenever this happens. Maybe I'll check out the new aws-native provider, as that doesn't seem to go through CloudFormation.
b

billowy-army-68599

11/15/2021, 3:45 PM
@great-greece-44955 are you using the awsx method of creating an ASG? you can create an ASG without using that resource
g

great-greece-44955

11/15/2021, 3:56 PM
Yes, I'm creating a awsx.ecs.Cluster and then calling the createAutoScalingGroup method on that.
b

billowy-army-68599

11/15/2021, 4:00 PM
that is an opinionated mechanism to create autoscaling groups via CFN. it was chosen because CFN allowed instance refreshes on asgs
there's nothing stopping you using the aws autpscaling group resource and avoiding cfn altogether: https://www.pulumi.com/registry/packages/aws/api-docs/autoscaling/group/
g

great-greece-44955

11/15/2021, 4:05 PM
Thanks, I'll definitely try that!