使用我尝试运行的 AWS CLI
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
但我得到了错误
An error occurred (ValidationError) when calling the CreateStack operation: S3 error: Access Denied
我已经设置了我的凭证
aws configure
PS 我从 AppSync 文档 ( https://docs.aws.amazon.com/appsync/latest/devguide/tutorial-lambda-resolvers.html ) 得到了 create-stack 命令
最佳答案
看起来你不小心跳过了 l 模板文件名末尾的字母:
LambdaCFTemplate.yam -> LambdaCFTemplate.yam l
关于amazon-s3 - 尝试运行 aws cli 时 S3 访问被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49652308/