나를 검색하려는 다른 resourceRecords 는지 여부에 따라 제 조건이 사실,다른 사람을 변경하는 경우 문자열 이름이 다른 것입니다. 여기에 내가 예제:
myDNSresource:
Type: AWS::Route53::RecordSet
Condition: devEnv
Properties:
HostedZoneName: {"Fn::ImportValue": !Sub "${stackName}-${AWS::Region}-dnsZone"}
Name: !Join [".", [!Ref hostname, {"Fn::ImportValue": !Sub "${stackname}-${AWS::Region}-dnsZone"}]]
Type: CNAME
TTL: 130
ResourceRecords:
- !If [conditionIsTrue, !Join [".", [{"Fn::ImportValue": !Sub "${accountStackName}-${AWS::Region}-dnsZone"}]],
- !Join
- ""
- - !GetAtt
- domainName
- regionalValue
- "."
]
내가 실행 cfn 린 및 나보고 오류에 대한 did not find expected node content
기 !Join
명령,후 직접 나 !If
문입니다. 나는 다음과 같은 조건의 공식->
!If [condition_name, value_if_true, value_if_false]
감사