Is it possible to statically specify AWS::StackName inside a cloudformation template?

泄露秘密 提交于 2020-01-14 14:39:09

问题


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


回答1:


No, you can't.

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.



来源:https://stackoverflow.com/questions/51828313/is-it-possible-to-statically-specify-awsstackname-inside-a-cloudformation-temp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!