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?

Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas