Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.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 web services 如何在serverless中将aws堆栈名与其他字符串合并?_Amazon Web Services_Amazon Cloudformation_Serverless - Fatal编程技术网

Amazon web services 如何在serverless中将aws堆栈名与其他字符串合并?

Amazon web services 如何在serverless中将aws堆栈名与其他字符串合并?,amazon-web-services,amazon-cloudformation,serverless,Amazon Web Services,Amazon Cloudformation,Serverless,考虑模板 给我: Error: The CloudFormation template is invalid: Template format error: Resource name #{AWS::StackName}SomeName is non alphanumeric. 所以这个内联不起作用。有什么想法吗?没什么神奇的,你不需要引用,试试下面的方法: stepFunctions: stateMachines: MyStateMachine: name: #{A

考虑模板

给我:

Error: The CloudFormation template is invalid: Template format error: Resource name #{AWS::StackName}SomeName is non alphanumeric.

所以这个内联不起作用。有什么想法吗?

没什么神奇的,你不需要引用,试试下面的方法:

stepFunctions:
  stateMachines:

    MyStateMachine:
      name: #{AWS::StackName}SomeName

该线程是否为您提供了解决方案?特别是5月6日seriouscoderone的评论可能会帮助你。
stepFunctions:
  stateMachines:

    MyStateMachine:
      name: #{AWS::StackName}SomeName