Skip to content
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

EREGCSC-2583 Update PostgreSQL engine to 15.8 #1511

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

cgodwin1
Copy link
Contributor

@cgodwin1 cgodwin1 commented Jan 8, 2025

Resolves #2583

Description-

To stay ATO compliant we need to be on the latest patch release for our major PostgreSQL version, which is 15.8.

This pull request changes...

  • Upgrades PostgreSQL engine version in Serverless config.

Steps to manually verify this change...

  1. Backup the dev DB. (A snapshot will suffice.)
  2. Perform manual engine upgrade on AWS console for dev.
  3. Deploy this PR.
  4. Verify Serverless does not create a new database or overwrite the existing dev DB.
  5. Backup the val DB. (A snapshot will suffice.)
  6. Manually upgrade the DB engine on the AWS console for val.
  7. Approve deployment to val.
  8. Verify Serverless does not create a new database or overwrite the existing val DB.
  9. Backup the prod DB. (A snapshot will suffice.)
  10. Set maintenance mode lambda for prod:
    a. Go to API Gateway for prod site. (prod-cmcs-eregs-site)
    b. Under "Resources", click "ANY", then click the "Integration request" tab.
    c. Click the "Edit" button.
    d. Under the "Lambda function" dropdown, search for "maintenance" and select the maintenance lambda.
    e. Click "Save". Then click "Deploy API" and confirm.
    f. Wait a few minutes for the changes to take effect, then refresh the eRegs prod site and verify it is in maintenance mode.
  11. Manually upgrade the DB engine on the AWS console for prod.
  12. Approve deployment to prod.
  13. Verify Serverless does not create a new database or overwrite the existing prod DB.
  14. Finally, for each DB (dev, val, and prod), verify the upgrade finished successfully by logging in with psql while on the VPN, then run the command SELECT version();. You should see a version string indicating "15.8" as the new version.

You do not need to undo the API Gateway maintenance mode changes- Serverless will handle it automatically as the deploy finishes.

Copy link

github-actions bot commented Jan 8, 2025

✨ See the Django Site in action

Copy link
Contributor

@PhilR8 PhilR8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@PhilR8 PhilR8 added the Approved label Jan 9, 2025
@cgodwin1 cgodwin1 merged commit d481e3d into main Jan 9, 2025
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants