【发布时间】:2021-01-25 03:33:19
【问题描述】:
我已经创建了一个具有 AdministratorAccess 策略的用户,我可以运行 aws s3 ls 并且它运行良好,但是当我尝试在 bash 中使用模板来使用 Cloudformation 构建堆栈时
aws cloudformation create-stack \
--stack-name $1 \
--template-body file://$2 \
--region=us-west-2 \
--capabilities CAPABILITY_IAM
如果我尝试在包含./create.sh test testVPC.yml 的所有文件的目录中构建一个堆栈,但我收到错误:bash: ./create.sh: Permission denied
我正在尝试部署一个简单的 VPC:
Description: >
This template deploys a VCP.
Resources:
VPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/24
EnableDnsHostnames: true
你能帮帮我吗?
【问题讨论】:
-
chmod 755 create.sh
标签: bash amazon-web-services amazon-cloudformation