Overview
This AMI runs a self-hosted identity and access management platform with PostgreSQL 17 on Ubuntu 24.04 LTS: an identity provider for OpenID Connect, OAuth 2.0 and SAML single sign-on, with organisations, users, roles, a management console, a separate login interface (password, passkeys and multi-factor options) and gRPC, gRPC-web and REST APIs. The upstream vendor images, release 4.20.1, are pinned together with PostgreSQL 17.11 and baked into the AMI, so first start does not depend on a registry.
What Perimattic adds
First administrator created for you, self-registration off: during first-login setup this AMI starts the platform with its first-instance settings, which create the one administrator (your email address as the login name and a random 24-character password generated on your server), and sets the login policy so that nobody can register themselves. A fresh install otherwise ships a documented default administrator login; none exists here, and setup checks that it is refused. Setup also checks that a wrong password and a stranger's login are refused, that anonymous API requests are refused and that the registration page offers no form. The master key (exactly 32 characters), the login interface's cookie secret and the database passwords are generated per instance; the machine token that the login interface uses is moved into a root-only file and its bootstrap file is deleted. There are no default or shared credentials in the image, and usage telemetry is off.
HTTPS and HTTP/2: Apache is configured as a reverse proxy and a free Let's Encrypt certificate is requested for your domain with certbot. The platform needs cleartext HTTP/2 behind the proxy, so setup enables Apache's HTTP/2 proxy module and routes the login interface separately. The tests prove the console, the login interface, OIDC discovery, a complete administrator sign-in (authorization code with PKCE) and a gRPC-web call through Apache. Both services listen only on the loopback interface and PostgreSQL is reachable only inside the Docker network.
Patched base: Ubuntu 24.04 LTS built through an automated EC2 Image Builder pipeline, with security updates applied at build time.
What you should know
No mail server is configured, so verification codes, invitations and password-reset emails do not work until you add your own SMTP provider in the console (the administrator's address is pre-verified). Native gRPC clients were not tested through Apache; gRPC-web, Connect and REST were. Keep a copy of the master key in /opt/app/.env: a restored database cannot be used without it.
The platform is light for what it does: about 215 to 235 MB of memory for the server, 170 to 180 MB for the login interface and 100 to 140 MB for PostgreSQL in our tests, so a t3.medium (4 GB) is the recommended starting size; production use with many users needs more.
Licence and attribution
Built on the open-source ZITADEL (AGPL-3.0; some directories are under Apache-2.0 and MIT, including the login interface, which is MIT). The images are unmodified and the source is at github.com/zitadel/zitadel. Not affiliated with, endorsed by, or sponsored by ZITADEL AG; ZITADEL is a trademark of its owner. PostgreSQL is released under the PostgreSQL License.
Getting Started Launch the AMI and open ports 22, 80 and 443 in the security group SSH in and answer the setup prompts (domain and admin email) Open https://your-domain/ui/console and sign in with your email address and the password printed at the end of setup Add your SMTP provider, then create organisations, projects, applications and users
A domain name with an A record pointing at the instance is required, because the site is served over HTTPS.
This AMI is built and supported by Perimattic.
Book a free setup consultation at https://cal.com/gaurav-pareek-perimattic/marketplace-setup-consultations or email us at aws-support@perimattic.com .
Support Managed and supported by Perimattic, a cloud infrastructure company with 13+ years of experience serving global clients. We offer free setup assistance, custom integrations, infrastructure consulting, and 24/7 support.
Highlights
- Self-hosted OIDC, OAuth 2.0 and SAML identity provider 4.20.1 (AGPL-3.0) with PostgreSQL 17.11, pinned and pre-installed. Add your own SMTP provider for email.
- Secure first login: the first administrator is created with a random 24-character password and a per-instance master key; self-registration is off; no default login exists; HTTPS through Apache and Let's Encrypt.
- Built on patched Ubuntu 24.04 LTS and supported by Perimattic: free setup assistance at aws-support@perimattic.com.