Waiter encountered a terminal failure state: For expression "Stacks[].Stack

0

Link: https://aws.amazon.com/blogs/machine-learning/using-container-images-to-run-pytorch-models-in-aws-lambda/
Example: Using container images to run PyTorch models in AWS Lambda

Hi developers, I encounter this issue while working on the last step of this tutorial example.

sam build && sam deploy –-guided
...
Configuring SAM deploy
======================

    Looking for config file \[samconfig.toml] :  Not found  

    Setting default arguments for 'sam deploy'  
    =========================================  
    Stack Name \[sam-app]: lambda-pytorch-example  
    AWS Region \[ap-southeast-1]:  
    Image Repository for pytorchEndpoint: ...  

    #Shows you resources changes to be deployed and require a 'Y' to initiate deploy  
    Confirm changes before deploy \[y/N]:  
    #SAM needs permission to be able to create roles to connect to the resources in your template  
    Allow SAM CLI IAM role creation \[Y/n]:  
    pytorchEndpoint may not have authorization defined, Is this okay? \[y/N]: y  
    Save arguments to configuration file \[Y/n]:  
    SAM configuration file \[samconfig.toml]:  
    SAM configuration environment \[default]:  

    Looking for resources needed for deployment: Not found.  
    Creating the required resources...  

Error: Failed to create managed resources: Waiter StackCreateComplete failed: Waiter encountered a terminal failure state: For expression "Stacks[].StackStatus" we matched expected path: "ROLLBACK_COMPLETE" at least once

==================================================================================

I have tried googling, but unfortunately I have found nothing similar. May I request for help to resolve this issue.
Thank you very much.

Edited by: Tharraleos on Feb 22, 2021 11:46 AM

Edited by: Tharraleos on Feb 22, 2021 11:55 AM

asked 3 years ago4018 views
1 Answer
0

I had the same problem, try attaching all cloud formation actions for all resources, that worked for me. Don't forget "As a best practice, define permissions for only specific resources"

Edited by: furiousdeveloper on May 28, 2021 6:44 PM

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions