developmentseed / eoapi-cdk

AWS CDK constructs for deploying eoAPI
https://developmentseed.org/eoapi-cdk
11 stars 4 forks source link

(fix): fix database bootstrap #102

Closed vincentsarago closed 7 months ago

vincentsarago commented 7 months ago

:warning: Checklist if your PR is changing anything else than documentation

Merge request description

vincentsarago commented 7 months ago

ok, So deployment still fails with the same error message

[ERROR] InsufficientPrivilege: must be member of role "pgstac_ingest"
Traceback (most recent call last):
  File "/var/task/handler.py", line 266, in handler
    raise e
  File "/var/task/handler.py", line 230, in handler
    Migrate(pgdb).run_migration(params["pgstac_version"])
  File "/var/task/pypgstac/migrate.py", line 149, in run_migration
    cur.execute(migration_sql)
  File "/var/task/psycopg/cursor.py", line 732, in execute
    raise ex.with_traceback(None)

When running the handler locally I don't get any error! there must be something special about RDS