【发布时间】:2019-08-13 08:21:45
【问题描述】:
我不知道如何将 yaml cloudformation 模板的以下部分转换为 json 模板。任何人都可以在这里指导我。
Tags:
- Key: Name
Value: !Join
- ''
- - !FindInMap
- BusinessUnitCode
- !Ref BusinessUnit
- Code
- A
- !FindInMap
- AWSRegionCode
- !Ref 'AWS::Region'
- Code
- '-'
- !FindInMap
- AccountsCode
- !Ref Account
- Code
- '-'
- !FindInMap
- ProdLevelCode
- !Ref ProductionLevel
- Code
- '-'
- !FindInMap
- ServerFunctionCode
- !Ref ServerFunction
- Code
- '-'
- !FindInMap
- SGFunctionCode
- !Ref SecurityGroupFunction
- Code
- '-'
- !Ref IncrementCode
虽然我知道没有必要进行这种转换,因为 json 和 yaml 在 cloudformation 中的工作方式相同,但必须按照规定进行。
【问题讨论】: