Thiago's Space Blog

Just another blog, this one about my learnings as I join the Space Industry as a software engineer.

View on GitHub
10 January 2022

Configure Subdomain

Making the REST interface available at api.thiago.pub

Onwards!

We previously covered an example gRPC service and REST interface and how to deploy it using Fargate.

I just set up a new record for domain thiago.pub to make the REST interface accessible via api.thiago.pub:

> curl -X POST \
    api.thiago.pub/v1/response -d '{"message": "greetings"}'

{"message":"Hello I am up and running received \"greetings\" message from you","received":true}

This is accomplished by creating a new Simple Routing record for the Hosted Zone associated with the domain, linking subdomain api with the Internet-facing Application Load Balancer created previously.

For the record (ba dum tss), here’s the full set of records associated with domain thiago.pub: