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?

已提問 1 年前檢視次數 87 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南