Skip to content

Commit

Permalink
feat(ca): update rds certs
Browse files Browse the repository at this point in the history
  • Loading branch information
briancaffey committed Feb 28, 2024
1 parent d25b261 commit f5a7d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN pip install "poetry==$POETRY_VERSION"
COPY poetry.lock pyproject.toml /code/

FROM base AS prod
RUN curl https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem -o /usr/local/share/rds-combined-ca-bundle.pem
RUN curl https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem -o /usr/local/share/global-bundle.pem
RUN POETRY_VIRTUALENVS_CREATE=false poetry install --only main
COPY . /code
RUN chown -R app:app /code
Expand Down
2 changes: 1 addition & 1 deletion backend/backend/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DATABASES["default"]["OPTIONS"] = {
"sslmode": "verify-full",
"sslrootcert": "/usr/local/share/rds-combined-ca-bundle.pem",
"sslrootcert": "/usr/local/share/global-bundle.pem",
}

# add django-storages to INSTALLED_APPS
Expand Down

0 comments on commit f5a7d0a

Please sign in to comment.