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
: