Lightsail Container Services with an apex domain in Route 53

0

I have just read and followed these docs: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-route-53-alias-record-for-container-service

Creating the record with the @.example.com syntax does not work. The CLI successfully creates the record, the record is visible in Route 53, but my apex domain example.com does NOT route to my container service.

However, if I do not use @. it works. For example:

{
  "Comment": "Comment",
  "Changes": [
    {
      "Action": "CREATE",
      "ResourceRecordSet": {
        "Name": "@.example.com", // <----------------- DOES NOT WORK! TRAFFIC DOES NOT ROUTE TO MY CONTAINER SERVICE.
        "Type": "A",
        "AliasTarget": {
          "HostedZoneId": "Z10362273VJ548563IY84",
          "DNSName": "tokklr.2caj0m80cnf9q.us-east-2.cs.amazonlightsail.com",
          "EvaluateTargetHealth": true
        }
      }
    }
  ]
}
{
  "Comment": "Comment",
  "Changes": [
    {
      "Action": "CREATE",
      "ResourceRecordSet": {
        "Name": "example.com", // <----------------- WORKS!
        "Type": "A",
        "AliasTarget": {
          "HostedZoneId": "Z10362273VJ548563IY84",
          "DNSName": "tokklr.2caj0m80cnf9q.us-east-2.cs.amazonlightsail.com",
          "EvaluateTargetHealth": true
        }
      }
    }
  ]
}

when using the @. in Route 53 I see this:

Enter image description here

So are the docs wrong? Outdated? Why does it mention the @.? And why does that do nothing when I create it via the CLI? How is that supposed to work?

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン