Skip to content
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 #8256

Closed
GavinZZ opened this issue Oct 19, 2023 · 2 comments
Closed

cloudformation deploy exits without useful message #8256

GavinZZ opened this issue Oct 19, 2023 · 2 comments
Assignees
Labels
duplicate This issue is a duplicate.

Comments

@GavinZZ
Copy link

GavinZZ commented Oct 19, 2023

Describe the bug

We had a customer issue cut to SAM repo and I think this is an issue with aws-cli. So creating the same issue here for help.

The following is what the customer described originally


After running the aws cloudformation package command, I then run deploy and get this:

aws cloudformation deploy --template-file new_template.yml --stack-name stack_name --capabilities CAPABILITY_IAM --profile profile_name
Waiting for changeset to be created..

'Status'

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


We've figured out the root cause where it's because of missing permission when calling the aws cli deployment command.

Expected Behavior

Give the error message more meaningful content

Current Behavior

aws cloudformation deploy --template-file new_template.yml --stack-name stack_name --capabilities CAPABILITY_IAM --profile profile_name
Waiting for changeset to be created..

'Status'

It exits at that point.

Reproduction Steps

Any template with only cloudformation:DescribeStacks permission in the profile

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/1.11.36 Python/2.7.10 Darwin/16.3.0 botocore/1.4.93

Environment details (OS name and version, etc.)

N/A

@GavinZZ GavinZZ added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 19, 2023
@tim-finnigan tim-finnigan self-assigned this Oct 24, 2023
@tim-finnigan
Copy link
Contributor

Thanks for reporting this issue. It appears to be a duplicate of #3982 so I'll close this to continue tracking there. Please feel free to upvote( 👍) that issue.

A couple other notes:

  • 1.11.36 is a very old version of the AWS CLI. The latest v1 version if 1.29.69 per the CHANGELOG. We also recommend using v2 of the AWS CLI if possible (see installation instructions here.)
  • I'm not able to access this link — not sure if it's private or if you intended to link somewhere else:

I am using the code from this example:
https://github.com/awslabs/serverless-application-model/tree/master/examples/2016-10-31/hello_world

@tim-finnigan tim-finnigan added duplicate This issue is a duplicate. and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 24, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

2 participants