Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the cause of the Security Constraints Not Satisfied Error when using sam deploy ---guided?

Tags:

aws-sam-cli

I am attempting to follow the Hello World example for deploying an AWS Serverless Application, but I get a Security Constraints Not Satisfied Error when using sam deploy --guided. I'm pressing Enter at each prompt to accept the defaults per the tutorial.

The curious bit--to me--is if I use the AWS Toolkit extension for VS Code to deploy the app it works fine, so I don't think it has anything to do with my IAM permission config, but I'm new to this so I'm not ruling it out.

like image 593
Kyle D. Hebert Avatar asked Dec 13 '22 08:12

Kyle D. Hebert


2 Answers

Recently the guided deploy was updated to include a prompt confirming if you were ok with not having any authorization defined. At the same time, a check was added that would fail the guided deploy if you answer 'No'. (See the relevant part of the commit here.)

This means that, as of this commit, you can't go through the AWS Hello World tutorial by responding with Enter to accept the default options.

To successfully deploy from the command line you'll need to confirm 'Yes' that you're ok with not having any authorization defined, and then it should work as expected.

like image 112
tenni Avatar answered Jun 11 '23 08:06

tenni


During your sam deploy --guided, at the following question you need to answer YES.

enter image description here

OR

You can do sam deploy which skip that

like image 20
Axel Paris Avatar answered Jun 11 '23 10:06

Axel Paris