Skip to content

Feat: enable Aurora Data API support #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed

Conversation

lalver1
Copy link
Member

@lalver1 lalver1 commented Jun 24, 2025

Closes #139

lalver1 added 7 commits June 20, 2025 19:10
- configure connection settings from the environment
- add ability to configure a root CA certificate(s)
  from the server to verify the client connection
- creates an admin connection
- resets database users and databases
- validates the database configuration
- checks if a user/database exists
- creates a user/database
- checks schema permissions
- runs migrations
- ensures a superuser exists
since ensure_db implements the same functionality, the .sh commands
are cleaned up to avoid redundancy.
in the pytest workflow, running migrations is not needed since
tests will migrate the database, but we still need to collect static
files and generate the static files manifest so that the
workflow does not fail.
introduce a healthcheck for the postgres service to ensure the
web and pgweb services do not start until the postgres server is ready.
this ensures we don't get an Admin connection to PostgreSQL fail
for web and an Error: connection refused error for pgweb when there
is no postgres service already running when web or pgweb are started.
This usually happens when the containers are first created.
- adds an Aurora Serverless storage to the copilot web service
- udpates the Dockerfile to include certs for PostgreSQL verify-full
  (uses the AWS Global RDS CA Bundle in case us-west-2 or us-east-1
  is used)
- supports database creation for local and dev environments
  (the dev environment uses the copilot-injected POSTGRESWEB_SECRET
  environment variable to connect to the database)
- updates the start_aws.sh script
this allows us to interact with the Aurora database by running
SQL queries on the AWS console
@lalver1 lalver1 self-assigned this Jun 24, 2025
Copy link

github-actions bot commented Jun 24, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  pems
  settings.py 107-109
  pems/core/management/commands
  ensure_db.py 73, 87-89, 99
Project Total  

This report was generated by python-coverage-comment-action

@lalver1
Copy link
Member Author

lalver1 commented Jun 25, 2025

Superseded by #131

@lalver1 lalver1 closed this Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable the Data API for Aurora Serverless
1 participant