考虑serverless模板
stepFunctions:
stateMachines:
MyStateMachine:
name: "#{AWS::StackName}SomeName"
给我:
Error: The CloudFormation template is invalid: Template format error: Resource name #{AWS::StackName}SomeName is non alphanumeric.
所以这个内联不起作用。有什么想法吗?
最佳答案
没什么神奇的,您不需要引号,请尝试以下操作:
stepFunctions:
stateMachines:
MyStateMachine:
name: #{AWS::StackName}SomeName
关于amazon-web-services - 如何在无服务器中将 aws 堆栈名称与其他字符串连接起来?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57929343/