I cannot pass the hello world deployment of sam which can work months ago
- What I did
sam deploy --guided
Looking for config file [samconfig.toml] : Not found
Setting default arguments for 'sam deploy'
=========================================
Stack Name [sam-app]:
AWS Region [eu-west-2]:
#Shows you resources changes to be deployed and require a 'Y' to initiate deploy
Confirm changes before deploy [y/N]: y
#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]: y
#Preserves the state of previously provisioned resources when an operation fails
Disable rollback [y/N]: y
HelloWorldFunction may not have authorization defined, Is this okay? [y/N]: y
Save arguments to configuration file [Y/n]: y
SAM configuration file [samconfig.toml]:
SAM configuration environment [default]:
- What I got
Looking for resources needed for deployment:
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_FAILED" at least once
- What I tried
- brew install aws-sam-cli again
- delete cloudformation stack and sam deploy -g again
- give myself AdministratorAccess and tried above steps again
- reset AWS credential with a new token and key
- try using sam installed by either x86 brew and arm brew (I am using M1 mac)
- upgrade aws-cli
- read this post
Please anyone help..