Database
When your application needs a relational database, Deployz creates one Amazon RDS instance for the deployment:- Engine: PostgreSQL 16 or MySQL 8.0, depending on the driver your application uses.
- Database and user: a database named
deployzand a user nameddeployz_app. Deployz generates the password and stores it in AWS Secrets Manager in the customer’s account. - Storage: starts at 20 GB of gp3 storage and grows automatically up to 100 GB. The instance class depends on the deployment’s size. See Sizes and AWS cost.
- Network: private. The database isn’t publicly accessible, and only the deployment’s own containers can reach it.
- Encryption: storage is encrypted at rest.
- Backups: automated daily backups, kept for 7 days, taken between 03:00 and 05:00 UTC. If the database can’t be created because the AWS account accepts fewer days, for example on an AWS free plan, you can lower this before you retry. See Database creation failed.
- TLS: Deployz downloads the Amazon RDS certificate bundle for the Region into each container when it starts, at
/deployz/certs/rds-ca-bundle.pem, and points the usual variables at it. The PostgreSQL connection URL includessslmode=require. If the download fails, the container starts without the bundle.
Cache
When your application needs Redis, Deployz creates a single-node Valkey cache with Amazon ElastiCache. Valkey is compatible with standard Redis clients.- One node: no replicas, no automatic failover, and no cluster mode.
- No TLS: connections use
redis://, notrediss://. The cache has no password. - Network: private. Only addresses inside the deployment’s own network can reach it, on port
6379. - Removal: the cache and its data are deleted when the deployment is removed.
File storage
Every deployment gets one Amazon S3 bucket, whether or not your application uses it.- Access: your application’s containers can read, write, list, and delete objects in the bucket. Credentials come from the container’s AWS role through the AWS SDK’s default credential chain, so your application doesn’t need access keys.
- Security: public access is blocked, and the bucket refuses requests that don’t use HTTPS. Objects are encrypted with S3-managed keys.
- Versioning: on. A lifecycle rule deletes old object versions 30 days after they’re replaced or deleted, and removes incomplete multipart uploads after 7 days.
Variables Deployz sets
Deployz sets these variables in every container of the deployment: the web service, each worker, the migration task, and each scheduled job. Queue variables are the exception: only the containers that send to or receive from a queue get them.
Values marked “Secret” are stored in AWS Secrets Manager in the customer’s account and passed to the container when it starts.
Names your application reads
Your application might read the same values under its own names, such asSPRING_DATASOURCE_URL or a JDBC URL. When the analysis recognizes such a name, Deployz sets it too, with the matching value. A name of your own never replaces one of the names in the table above. To connect a name the analysis didn’t recognize, map it to a managed value. See Map a variable to a managed value.
Deployz can also fill in variables that hold your application’s own public URL, or the S3 Region and endpoint, from the deployment’s address and Region.
When you set a variable with the same name
If you or your customer save a value under the same name as a variable Deployz sets, your value replaces Deployz’s value. This lets you pointDATABASE_URL at an external database, for example.
PORT must match the port the load balancer sends traffic to. To change it, change the Port setting on the Configuration screen instead of setting a PORT variable.
For how to set your own variables, see Configure environment variables. For every AWS resource in a deployment, see AWS resources Deployz creates.