Skip to main content

Providers, datacenters and server types

This guide willexplain listhow theto find available options for provider_name, datacenter and server_type variables when you want to manage a service resource with terraform :

resource "elestio_vault" "my_vault" {
  ...
  provider_name = "hetzner"
  datacenter    = "fsn1"
  server_type   = "SMALL-1C-2G"
  ...
}
As this information can be updated often, we cannot put a fixed list in this documentation.
You will learn how to get this information from the Elestio website.

Listing all optionsInstructions

When you create a service via the website, all three pieces of information (providers, datacentersdata centers, and server types) are listed on a single page. You can copy the configuration from there and paste it into your Terraform file.

1. Sign In on the

Elestio Web DashboardCleanShot 2023-10-03 at 12.55.15.png

 
2. Click on the button Create a new service (or Deploy my first service).


Screenshot 2023-01-08 at 01.15.44.pngCleanShot 2023-10-03 at 12.55.32.png

3. Select one of the services (the choice does not matter)CleanShot 2023-10-03 at 12.55.53.png

Screenshot 2023-01-08 at 01.16.20.pngCleanShot 2023-10-03 at 12.56.15.png


4. You arrive on this page :

image.pngCleanShot 2023-10-03 at 12.56.27.png


CleanShot 2023-10-03 at 12.56.51.png

Providers

Screenshot 2023-01-08 at 01.20.12.pngCleanShot 2023-10-03 at 12.57.04.png

CleanShot 2023-10-03 at 12.57.20.png

CleanShot 2023-10-03 at 12.57.39.png

CleanShot 2023-10-03 at 12.57.50.png

CleanShot 2023-10-03 at 12.58.05.png

For each of the providers, here are the values to pass to terraform provider_name:
- Vultr Cloud : vultr
- Hetzner Cloud : hetzner
- Digital Ocean : do
- Amazon Lightsail : lightsail
- Linode Cloud : linode
- BYOVM : byovm
- Amazon EC2 : aws


Datacenters

Screenshot 2023-01-08 at 01.19.31.png

You can pass datacenter variable in as it is written on the site.
For exemple: fsn1 (Hetzner) or eu-central-1 (Amazon Lightsail).

Server types

Screenshot 2023-01-08 at 01.24.56.png

You can pass server_type variable in as it is written on the site. For exemple: SMALL-1C-2G (Hetzner) or MICRO-1C-1G (Amazon Lightsail).

Note that after creating a service, you can only modify a server type with a more powerful one. Downgrade is not allowed.

Exemple

If I want to host my service on Amazon Lightsail in Ireland (Dublin) with a 1 CPU, 1 GB RAM, 2 TB Bandwith plan :
resource "elestio_vault" "my_vault" {
  ...
  provider_name = "lightsail"
  datacenter    = "eu-west-1"
  server_type   = "MICRO-1C-1G"
  ...
}