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?

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions