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?

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠