部署cloudformation模板时指定S3存储桶 [英] Specifying an S3 bucket when deploying a cloudformation template

查看:74
本文介绍了部署cloudformation模板时指定S3存储桶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用如下所示的命令来部署cloudformation模板:

I'm trying to deploy a cloudformation template using a command that looks as follows:

aws cloudformation deploy \
        --stack-name stackname \
        --template-file folder/file.yaml \
        --s3-bucket bucketname \
        --s3-prefix prefix

我收到的错误是:

调用CreateChangeSet操作时发生错误(ValidationError):
S3错误:您要访问的存储桶必须使用指定的端点进行寻址.请将所有以后的请求发送到该端点.
有关更多信息,请检查 http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html

我已经检查了该链接以尝试理解我的要求,但这似乎与直接使用S3而不是通过CloudFormation使用S3有关.

I have checked the link to try and understand what is being asked of me, but it seems to relate to directly using S3, and not using S3 via CloudFormation.

我无法使用 aws cloudformation

推荐答案

定义堆栈的模板文件必须位于与Amazon CloudFormation堆栈位于相同区域的Amazon S3存储桶中.已创建.

The template file that defines a stack must be in an Amazon S3 bucket that is in the same region as the AWS CloudFormation stack being created.

这篇关于部署cloudformation模板时指定S3存储桶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆