Metabase on the Ametnes Platform#
This tutorial explains how to provision a Metabase data service on the Ametnes Platform. Running Metabase on the platform keeps your dashboards and analytics data inside your own private infrastructure — a common requirement after Metabase's recent security incident.
Prerequisites#
- An Ametnes Platform account.
- A configured Data Service Location.
Provision Metabase on Ametnes Platform#
- Sign in to the Ametnes Platform console.
- Click New Resource.
- Enter:
- Name: a unique name for your Metabase service.
- Resource Kind:
metabase. - Tier: choose a preset tier size that matches your expected dashboard and query load.
- Storage: choose capacity for Metabase's bundled application database.
- Select your Data Service Location.
- Click Create.
- Save the generated connection details, including the URL.
Deploying data services at scale is easier with the Ametnes Cloud Terraform provider.
Create an API token
In your Ametnes Cloud account:
- Navigate to Users.
- Click Edit on your user.
- Click Get User Token and a user token will be generated for you.
- Keep the generated token in a secure place, as it will not be shown again.
Install Terraform
Follow the instructions here to install Terraform on your computer.
Create your project
Add these files to an empty folder on your workstation.
Set up the variables
Add your API key secrets
Define your resources
The architecture config option selects the preset tier size (Starter, Small, Basic, Medium, Large, XLarge, 2xlarge, 3xlarge, or 4xlarge) and capacity.storage sizes Metabase's bundled application database. You do not need to attach a separate Network Access resource: it is created for you automatically.
Deploy your Terraform resources
- Run
terraform init. - Run
terraform planto see the resources that will be created. - Run
terraform apply -auto-approve. - Once Terraform finishes, the
service_connectionsoutput contains the endpoint (URL) of your Metabase service.
Note
Metabase is deployed inside your private environment and is only accessible within your internal network.
Open Metabase#
- Open the Metabase URL in a browser (from your resource details in the console, or from the
service_connectionsoutput if you used Terraform). - On first launch, Metabase shows a setup page where you create your admin account: enter your name, email address, and a password.
- Continue through the remaining steps (language, timezone, and usage-data preferences) until you reach the Metabase home screen.
Connect Metabase to your data#
Add your databases under Settings → Admin → Databases → Add database, then build questions and dashboards against them.
Validation checklist#
- Metabase resource status is
onlinein Ametnes Platform. - You can open the Metabase URL and complete first-time setup.
- You can sign in and reach the Metabase home screen.