【发布时间】:2020-02-11 02:27:56
【问题描述】:
我的 CloudFormation 模板中有以下部分
PublicSubnetA:
Type: AWS::EC2::Subnet
Properties:
VpcId: !Ref VPC
CidrBlock: 10.1.10.0/24
AvailabilityZone: !Select [ 0, !GetAZs ] # Get the first AZ in the list
Tags:
- Key: Name
Value: !Sub
- ${AWS::StackName}-PUB-${SUFFIX}
- SUFFIX: !Select [ 0, !GetAZs ]
我需要 SUFFIX 为大写,我该怎么做?
【问题讨论】:
-
我看到了注释,但不能让它适用于我的情况。它一直说模板验证错误
-
当我尝试链接函数时,它给出了以下错误。“..转换块中的内在函数必须只包含参数值或堆栈元数据。”
标签: amazon-web-services amazon-cloudformation