CloudFormation堆栈yaml语法?
我试图创build一个像Name: SG-StackName这样的标签Name: SG-StackName 。 此代码在json中完美工作: "Resources": { "SecurityGroup": { "Type": "AWS::EC2::SecurityGroup", "Properties": { … "Tags": [{ "Key": "Name", "Value": { "Fn::Join" : [ "", [ "SG-", { "Ref" : "AWS::StackName" } ]] } } ] } }, 现在我试图把它转换成yaml: Resources: SecurityGroup: Type: AWS::EC2::SecurityGroup Properties: … Tags: – Key: Name – Value: !Join – '' – – […]