Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon cloudformation 参考多参数云图_Amazon Cloudformation - Fatal编程技术网

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}"