Skip to content

URL issue with AWS Deployment #84

@gbegkas

Description

@gbegkas

Hello, I am trying to deploy this project on AWS using API Gateway and Lambda through serverless.

I have modified the dockerfile to use the aws lambda base docker image and the app to access the Magnum handler, set up two endpoints in API Gateway, one for root and one for {proxy+} and manually setup up a pgstac using Aurora PostgreSQL.

Things work well and I can access the endpoints. The problem I am facing is that the root URL of API Gateway contains the stage and results in a URL like https://{api_Id}.execute-api.{region}.amazonaws.com/{stage}/ but the URLs generated from the STAC API are like this https://{api_Id}.execute-api.{region}.amazonaws.com/collections/ which don't work out of the box. Adding the stage by hand (e.g. https://{api_Id}.execute-api.{region}.amazonaws.com/{stage}/collections/) works with the exception of the api.html which is normal under the circumstance.

I have no experience with Fast API and every possible solution I found on the net didn't help.

I am sure that I am missing something. If needed I can post my dockerfile and serverless.yml.

Thanks in advance for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions