LoginSignup
1
0

More than 5 years have passed since last update.

CloudFormationでRecordSetを作成する時、FATAL problem: DomainLabelEmptyと出会い

Last updated at Posted at 2018-01-17

CloudFormationでroute53を作っている時FATAL problem: DomainLabelEmpty encounteredに出会いました

ELBRecord:¬
  Type: 'AWS::Route53::RecordSet'
  Properties:
    Type: A
    AliasTarget:
      DNSName: !GetAtt␣AppELB.DNSName¬
      HostedZoneId: !GetAtt AppELB.CanonicalHostedZoneID
    Comment: 'A test Record' 
    HostedZoneName: !Ref HostedZoneName¬
    Name: !Sub 'test.001.${HostedZoneName}.'

原因

parameterで定義されたHostedZoneNameが以下のようになります

HostedZoneName:
  Type: String
  Default: 'mydomain.co.jp.'

これでELBRecordのNameプロパティの中身がtest.001.mydomain.co.jp..隣、ルーツレベルの.が二つになってしましました。Name: !Sub 'test.001.${HostedZoneName}'に直せば問題解決できました。

まとめ

FATAL problem: DomainLabelEmpty encounteredが出たらどこかに..入っているということです。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0