New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloudformation deploy exits without useful message #58
Comments
Just an update: Having only this cloudformation action allowed
So when I allow
I'm guessing I need to allow more actions but there is no error message telling me what I'm missing. This is probably an awscli cloudformation issue I'm guessing. |
Does it complete if you call deploy with '--no-execute-changeset' option? |
aws cloudformation deploy --template-file new_template.yml --stack-name stack_name --capabilities CAPABILITY_IAM --profile profile_name --no-execute-changeset This produces the same result. Allowing cloudformation:* in the policy causes it to work. |
My guess is that the CLI does not handle exceptions when calling ExecuteChangeSet. Needs more investigation |
@sanathkr I copied and pasted your api_gateway code, and the deployed failed. Here is the detailed info, and hopefully this gives you some info to help out.
PutFunction: DeleteFunction: Table: $aws cloudformation deploy --template-file ./serverless/example_api_backend/new_template.yaml --stack-name serverless-api-backend-test-4 --capabilities CAPABILITY_IAM
$ aws cloudformation describe-stack-events --stack-name serverless-api-backend-test-4 |grep FAILED |
After grant this user, I called it serverlessAdmin, all permissions (essentially an account admin), the above errors goes away. But I don't think it's a good practice. Would be great if we can find out the minimal Policy that should be attached to this user. |
I was facing the same problem and yeah adding permissions helped but ideally I would like to see an error message that describes to me what went wrong |
I just got this issue and it's because I was missing the |
Nothing actionable here. Closing |
For anybody visiting here with a similar issue I had this problem but there were no Events in Cloudformation alerting me to missing permissions. I then used My current understanding of minimum permissions
|
I just stumbled upon this, it's still occurring almost 7 years later. IMO there should be some more information being printed by default, seeing as how many people were affected by this (looking at the number of upvotes in this issue). |
I ran into this as well, using 2.13.16. It was failing the same way, same error of "Status". I was missing |
Same issue, was missing |
Guys, this was such a simple fix and yet was closed as "nothing actionable"? The error message is |
The reason we marked it as |
@GavinZZ I understand. At the very least, this should be escalated to the AWS CLI folks then. SAM CLI is surely not the recommended approach to deploying CloudFormation templates which have nothing to do with serverless solutions. Not to mention, this issue tends to be top of the Google search results for this particular issue. I can see why the confusion. |
@tyliggity Let me rephrase. If the template uses SAM Transform, it’s recommended to use SAM CLI. However, if it’s a pure CloudFormation template, it definitely make sense to use AWS CLI. I’ll help cut an issue to aws-cli repository to provide a more meaningful error message. |
After running the
aws cloudformation package
command, I then run deploy and get this:It exits at that point. It gets stuck on the first event:
"ResourceStatus": "REVIEW_IN_PROGRESS",
I am using the code from this example:
https://github.com/awslabs/serverless-application-model/tree/master/examples/2016-10-31/hello_world
aws-cli/1.11.36 Python/2.7.10 Darwin/16.3.0 botocore/1.4.93
The text was updated successfully, but these errors were encountered: