Amazon cloudformation 参考多参数云图
如果我有一些参数,比如Amazon cloudformation 参考多参数云图,amazon-cloudformation,Amazon Cloudformation,如果我有一些参数,比如 Parameters: Owner: Description: Enter Team or Individual Name Responsible for the Stack. Type: String Default: Name Project: Description: Enter Project Name. Type: String Default: Whatever 有没有一种方法可以同时引用它们,比如: Resources
Parameters:
Owner:
Description: Enter Team or Individual Name Responsible for the Stack.
Type: String
Default: Name
Project:
Description: Enter Project Name.
Type: String
Default: Whatever
有没有一种方法可以同时引用它们,比如:
Resources:
Resource:
Properties:
Name: !Ref Owner- !Sub ${Project}
谢谢您可以使用:
Name: !Join [ '-', [!Ref Owner, !Ref Project] ]
这将生成类似ownerX projectY的内容您可以执行
Name: !Sub "${Owner}-${Project}"