Overview
This AMI runs Lago, an open-source billing platform for metering usage, running subscriptions and generating invoices, on Ubuntu 24.04 LTS. It exposes a web app, a GraphQL API for the app itself, and a documented public REST API your own services can call to record usage events, manage plans, customers, invoices and credit notes. The vendor images are release 1.57.0 for the API and front end, pinned and baked into the AMI, so first start does not depend on a registry.
What Perimattic adds
Your organization and administrator account are created for you during setup, before the site is published, using Lago's own bootstrap mechanism; there is no default account and public sign-up is disabled, so nobody else can register or create a second organization. Apache provides HTTPS with a free Let's Encrypt certificate, routing the web app, the GraphQL and REST APIs and the real-time update channel to the right service behind the scenes.
Limits you should know
Sending email (teammate invitations, password-reset links, invoice emails) needs an SMTP server you provide; set it in the environment file after launch. Object storage defaults to the local disk; attach S3 or GCS if you need offloaded storage. Removing the 'Powered by Lago' watermark from generated invoices is a paid Premium feature sold by Lago itself, not something this image can unlock. The optional ClickHouse-based analytics pipeline for very high event volumes is not included; the core billing, invoicing and usage-metering stack is complete on its own. Lago runs seven containers (API, worker, clock, front end, PostgreSQL, Valkey, PDF generation); size guidance is below.
Licence and attribution
Built on the open-source Lago (AGPL-3.0 licence), unmodified. Not affiliated with, endorsed by, or sponsored by the Lago team; Lago is a trademark of its owner.
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/ and sign in with the email you gave and the password printed at the end of setup Create your first billable metric, plan and customer, then connect your own services to the REST API using an API key from Settings
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
- Lago 1.57.0 (AGPL-3.0) pinned and pre-installed: usage-based billing, subscriptions, invoicing and a documented public REST API, with PostgreSQL and Valkey.
- Secure first login: the organization and administrator are created for you before launch, public sign-up is disabled, a wrong password and an anonymous API read are refused, and the password is a generated 24-character value. 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.
Details
Features and programs
Financing for AWS Marketplace purchases
Pricing
- ...
Dimension | Cost/hour |
|---|---|
t3.medium Recommended | $0.03 |
t3.micro | $0.03 |
c3.2xlarge | $0.03 |
c3.4xlarge | $0.03 |
c3.8xlarge | $0.03 |
c3.large | $0.03 |
c3.xlarge | $0.03 |
c4.2xlarge | $0.03 |
c4.4xlarge | $0.03 |
c4.8xlarge | $0.03 |
Vendor refund policy
For any questions or concerns, please contact: Perimattic.com Email: aws-support@perimattic.com
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
Initial release.
- Application: Lago 1.57.0 (container image pinned, baked into the AMI).
- Base: Ubuntu 24.04 LTS, fully patched at build time, built by an automated EC2 Image Builder pipeline.
- TLS: Apache reverse proxy with a Let's Encrypt certificate requested by certbot at first login.
- Credentials are generated on the instance at first login; none are present in the image.
- The organization and administrator are created during setup from Lago's own bootstrap mechanism (a generated 24-character password); public sign-up is disabled from first boot, and setup verifies a wrong password and a second sign-up are both refused before the site is published.
- Lago 1.57.0 (AGPL-3.0, vendor images, unmodified) runs seven containers behind Apache; the GraphQL API, REST API and real-time update channel are proxied alongside the web app.
- SMTP, S3/GCS storage and the Premium invoice-watermark removal are left to the buyer; the optional ClickHouse analytics add-on for very high event volumes is not included.
Additional details
Usage instructions
-
Launch an Instance
From AWS Marketplace, click Continue to Subscribe and then Continue to Configuration to launch the AMI.
-
Choose the Recommended Instance Type
t3.medium (4 GB of memory) is the recommended size: the seven containers (API, worker, clock, front end, PostgreSQL, Valkey, PDF generation) used about 1.4 GB together in our tests, leaving roughly 2.1 GB of headroom. A 2 GB instance leaves too little margin for this stack; choose t3.large or larger for heavier billing volume.
-
Configure Security Group
Allow inbound traffic on the following ports:
- 22 (SSH) - terminal access for setup
- 80 (HTTP) - needed to validate your domain for the TLS certificate
- 443 (HTTPS) - access to Lago
-
Point a domain at the instance
Create a DNS A record (for example billing.example.com) pointing to the instance's public IP before you log in.
-
Connect to the Instance
ssh -i <your-key.pem> ubuntu@<public-ip>
-
First-Login Setup
The first SSH login runs a guided setup:
- Prompts for your domain and admin email and checks the DNS A record
- Generates a random 24-character password and Lago's own session, webhook-signing and column-encryption keys on your server
- Creates one organization and one administrator account using Lago's own bootstrap mechanism, then closes public sign-up, starts the full stack, and checks that the password works, that a wrong password and a second sign-up are refused, and that the GraphQL API cannot be read without a token
- Configures Apache as an HTTPS reverse proxy for the web app, the GraphQL and REST APIs and the real-time update channel, and requests a Let's Encrypt certificate
- Prints the URL, email and password; they are also stored in /opt/app/access.txt (root only)
If a step fails, fix the problem shown and log in again: the setup resumes where it stopped.
-
Access Lago
Open https://<your-domain>/ and sign in with the email you gave and the password printed at the end of setup (view it again with: sudo cat /opt/app/access.txt).
-
Credentials
Generated on your server, never shared between customers. View them again with:
sudo cat /opt/app/access.txt
-
Manage the Services
cd /opt/app sudo docker compose ps sudo docker compose restart
Billing data is stored in /opt/app/postgres and uploaded or generated files in /opt/app/storage; back up all of /opt/app or take EBS snapshots before upgrades. The session key, webhook-signing key and the three column-encryption keys in .env protect that data: keep them with your backups.
Thank you for subscribing.
Need Support or Customization? Perimattic's team can help with setup issues, custom features and integrations:
Email us: aws-support@perimattic.com WhatsApp: +91-92142 66896 Learn more: <www.perimattic.com >
We offer free setup assistance, custom development and integrations, and infrastructure consulting.
Resources
Vendor resources
Support
Vendor support
Support by Perimattic
Perimattic provides 24/7 support for all AWS Marketplace products. Our team has 13+ years of cloud infrastructure expertise serving global clients.
Contact Channels: Email: aws-support@perimattic.com WhatsApp: +91-92142 66896 Website: <www.perimattic.com >
What We Help With: Initial setup and configuration assistance (free) Troubleshooting connectivity, performance, and backup issues Custom development and integrations Infrastructure consulting and architecture review Migration planning from other solutions Automation solutions and scaling guidance
Instance Sizing Guidance: t2.medium or t3.medium: Development environments, small applications m5.large: Production workloads with moderate traffic m5.xlarge: High-traffic production deployments and larger datasets
For workload-specific sizing recommendations, contact our team for a free consultation.
Refunds and Issues: If you experience any issues or need to request a refund, contact us at aws-support@perimattic.com and we will respond promptly.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.