You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an operator I hate, hate, hate manual steps in my deploy process, but every time I tear down and re-set up the API, I have to change the endpoint the UI points to. This could be fixed easily by setting up a new DNS record for yersong-api.danielsomerfield.com and having that point at whatever is built by the api deploy process.
ACs
the build:production hackery is gone from ui/package.json
you can tear down the entire application and set it up again without having to manually change anything
all this stuff is configured in terraform and/or SAM (probably terraform, given where the other stuff lives) Implementation notes
This will need to be done in the same way as yersong.danielsomerfield.com was configured, except that rather than pointing at a cloudfront endpoint, it will have a cname that points to the api gateway location of the yersong api. Here is more or less what has to be done:
Create a DNS record in route53 for the new subdomain yersong-api.danielsomerfield.com. For example, here is how the other DNS record was created. This will need to pull the hostname out of SAM's cloudformation config for api gateway. We will also need to point the api gateway endpoint to our existing TLS certificate. I'm not sure how to do that. We'll have to figure it out.
Get the name server records created by the route53 record. They are available either in the terraform, output or in the route53 console. Add a couple of NS records to namescheap using those dns servers. Image of the UI host name is below:
Replace the code that loads the REACT_APP_SONG_API_HOST variable and change the default endpoint to yersong-api.danielsomerfield.com for production. You should still be able to run against localhost when running on a dev laptop.
Add a virtual host to the existing TLS certificate so it can be used for that, too. That is here.
As an operator I hate, hate, hate manual steps in my deploy process, but every time I tear down and re-set up the API, I have to change the endpoint the UI points to. This could be fixed easily by setting up a new DNS record for yersong-api.danielsomerfield.com and having that point at whatever is built by the api deploy process.
ACs
Implementation notes
This will need to be done in the same way as
yersong.danielsomerfield.com
was configured, except that rather than pointing at a cloudfront endpoint, it will have a cname that points to the api gateway location of the yersong api. Here is more or less what has to be done:yersong-api.danielsomerfield.com
. For example, here is how the other DNS record was created. This will need to pull the hostname out of SAM's cloudformation config for api gateway. We will also need to point the api gateway endpoint to our existing TLS certificate. I'm not sure how to do that. We'll have to figure it out.yersong-api.danielsomerfield.com
for production. You should still be able to run against localhost when running on a dev laptop.Picture of adding NS records in namescheap.
The text was updated successfully, but these errors were encountered: