Experimental terraform module for deploying Vaultwarden to fly.io, using AWS SES for email.
You'll need to set up AWS and Fly on your system so that Terraform can authenticate.
For Vaultwarden itself, review the available environment variables and configure for your needs. Some defaults are set to get it working within the Fly environment, but at a minimum set SMTP_FROM
or Vaultwarden won't start. This should be an email address that you've validated with SES.
See test.tf
for a very basic example.
- Fly app, with a machine running Vaultwarden
- SMTP credentials for SES (remember to validate the desired email address)
Fly machines aren't charged when they're not running, so this module deploys a modified image that exits if no logs have been emitted for a period of time (default 5 minutes). Unless your usage is very high, running this should be dirt cheap. Be sure not to disable logging.