https://pulumi.com logo
Title
w

wide-jackal-86020

12/09/2021, 11:19 PM
Hi, I got an error when deploying API Gateway
Type                          Name                        Status                  Info                                                                                                                                                                                     
     pulumi:pulumi:Stack           control_api-staging  **failed**              1 error                                                                                                                                                                                  
 -   └─ aws:apigateway:Deployment  control_api          **deleting failed**     1 error                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                
Diagnostics:                                                                                                                                                                                                                                                                    
  aws:apigateway:Deployment (control_api):                                                                                                                                                                                                                               
    error: deleting urn:pulumi:staging::control_api::aws:apigateway:x:API$aws:apigateway/deployment:Deployment::control_api: 1 error occurred:                                                                                                                    
        * error deleting API Gateway Deployment (5ad3rk): BadRequestException: Active stages pointing to this deployment must be moved or deleted                                                                                                                               
                                                                                                                                                                                                                                                                                
  pulumi:pulumi:Stack (control_api-staging):                                                                                                                                                                                                                             
    error: update failed
Has anyone experienced this and knows how to fix it?
h

happy-parrot-60128

12/10/2021, 9:44 AM
Sounds like there might be a stage that's been created that's not managed by pulumi somehow. Maybe try listing the stages then manually deleting any that shouldn't be there