Search code examples
amazon-s3aws-lambdaaws-clivalidationerroraws-appsync

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)


Solution

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

    LambdaCFTemplate.yam -> LambdaCFTemplate.yaml