hotosm / galaxy-api

Backend to fetch data from Underpass
https://galaxy-api.hotosm.org/latest/redoc
GNU Affero General Public License v3.0
14 stars 5 forks source link

Let API talk to Tasking Manager RDS #171

Closed ramyaragupathy closed 2 years ago

ramyaragupathy commented 2 years ago

From discussion here https://github.com/hotosm/galaxy-api/issues/153#issuecomment-1054069415

@eternaltyro is working on resolving the issue

cc @itskshitiz321 @JorgeMartinezG

eternaltyro commented 2 years ago

Components

eternaltyro commented 2 years ago

Both of these are done from the infrastructure side. I am currently setting up the container to connect to the database with the right credentials (See comments in #140)

Testing the connection:

eternaltyro commented 2 years ago

The new API service has been deployed to docker containers on AWS ECS and has been made temporarily accessible on galaxy-api-lb.hotosm.org

To be production worthy, the following needs to happen

I am hoping to get some support from an AWS Solutions Architect regarding the AWS Cloudfront redirection issue that would let us have galaxy.hotosm.org/api/... but until that happens, let's work with galaxy-api.hotosm.org

eternaltyro commented 2 years ago

@d-rita Please help test the endpoints and post results of your test here if possible. Thanks.

d-rita commented 2 years ago

With the galaxy-ui:

With the API docs:

d-rita commented 2 years ago

@eternaltyro, these are the steps I took:

eternaltyro commented 2 years ago

The callback URL domain should match the actual domain from which OAuth requests are made. I fixed this in the current Docker setup.