Skip to content

v2.1.0

Latest

Choose a tag to compare

@u11d-maciej-lopalewski u11d-maciej-lopalewski released this 17 Apr 12:35
· 8 commits to main since this release
83be5b7

DEPRECATION NOTICE

In previous versions, we used the DATABASE_URL environment variable to pass credentials for the RDS connection in the backend ECS task. This approach caused issues with automatic RDS password rotation. To address this, we have improved the implementation by mounting a secret containing the password to the container and introducing the following new environment variables: DATABASE_HOST, DATABASE_PORT, DATABASE_NAME, DATABASE_USER, and DATABASE_PASSWORD.
You can use these variables in your medusa-config.ts as shown below:

const {
  DATABASE_HOST,
  DATABASE_PORT,
  DATABASE_NAME,
  DATABASE_USER,
  DATABASE_PASSWORD,
} = process.env;

const DATABASE_URL = `postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}`;

The DATABASE_URL environment variable will be removed in future releases.

What's Changed

Full Changelog: v2.0.0...v2.1.0