是否可以在cloudformation模板中静态指定AWS :: StackName? [英] Is it possible to statically specify AWS::StackName inside a cloudformation template?

查看:82
本文介绍了是否可以在cloudformation模板中静态指定AWS :: StackName?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在cloudformation模板中静态指定AWS :: StackName?还是只能在运行模板时将其指定为参数?

Is it possible to statically specify AWS::StackName inside a cloudformation template? Or can this only be specified as a parameter when you run the template?

据我了解,该值只能通过伪参数读取,不能设置:

As far as I understand, this value can only be read via pseudo parameters, not set:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/pseudo-parameter-reference.html#cfn-pseudo-param-stackname

推荐答案

不,您不能。

模板只是以下内容的一部分您的堆栈,不会设置其元信息(例如名称,部署区域等)。

Template is just a content of your stack, it doesn't set it's metainfo (like name, deployment region etc.).

请注意,您可以将同一模板用于多个堆栈,甚至-堆栈。

Note, that you can use same template for multiple stacks, or even sub-stacks.

这篇关于是否可以在cloudformation模板中静态指定AWS :: StackName?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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