Sentry in your environment using the Ametnes Platform#
This tutorial explains how to provision a Sentry data service in your environment using the Ametnes Platform.
Prerequisites#
- An Ametnes Platform account.
- A configured Data Service Location.
Provision Sentry on Ametnes Platform#
- Sign in to the Ametnes Platform console.
- Click New Resource.
- Enter:
- Name: a unique name for your Sentry service.
- Resource Kind:
sentry. - Tier: choose a preset tier size that matches your expected event volume and retention needs.
- Storage: choose capacity for Sentry's bundled storage-backed services.
- 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 Sentry's bundled storage. 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 Sentry service.
Note
Sentry is deployed inside your private environment and is only accessible within your internal network.
Overview#
- Open the Sentry URL in a browser (from your resource details in the console, or from the
service_connectionsoutput if you used Terraform). - On first launch, complete the initial Sentry setup and sign in with the admin credentials you created.
- Use the Sentry UI to confirm projects, alerts, and incoming events are working as expected.
Validation checklist#
- Sentry resource status is
onlinein Ametnes Platform. - You can open the Sentry URL and sign in successfully.
- Configuration changes, such as SMTP, are reflected after the update completes.
- If you upgraded the version, the resource reports the expected Sentry release.