Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

S3 access denied when trying to run aws cli

using the AWS CLI I'm trying to run

aws cloudformation create-stack --stack-name FullstackLambda --template-url https://s3-us-west-2.amazonaws.com/awsappsync/resources/lambda/LambdaCFTemplate.yam --capabilities CAPABILITY_NAMED_IAM --region us-west-2

but I get the error

An error occurred (ValidationError) when calling the CreateStack operation: S3 error: Access Denied 

I have already set my credential with

aws configure

PS I got the create-stack command from the AppSync docs (https://docs.aws.amazon.com/appsync/latest/devguide/tutorial-lambda-resolvers.html)

like image 342
honkskillet Avatar asked Oct 28 '25 04:10

honkskillet


1 Answers

Looks like you accidentally skipped l letter at the end of template file name:

LambdaCFTemplate.yam -> LambdaCFTemplate.yaml

like image 74
Michał Z. Avatar answered Oct 30 '25 05:10

Michał Z.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!