tor_multipath_voip/scripts/2021/main.tf

24 lines
494 B
Terraform
Raw Normal View History

2021-01-28 09:07:41 +00:00
terraform {
required_providers {
scaleway = {
source = "scaleway/scaleway"
version = "2.0.0-rc1"
}
}
}
provider "scaleway" {
zone = "fr-par-1"
region = "fr-par"
2021-01-28 09:38:21 +00:00
project_id = "1915f95a-dea4-4222-8e6b-a90b6125d1f4"
2021-01-28 09:07:41 +00:00
}
2021-01-28 09:38:21 +00:00
resource "scaleway_instance_ip" "torhs_ip" {}
2021-01-28 09:07:41 +00:00
resource "scaleway_instance_server" "torhs" {
type = "DEV1-L"
image = "ubuntu_focal"
2021-01-28 09:38:21 +00:00
name = "torhs"
2021-01-28 09:41:09 +00:00
cloud_init = file("${path.module}/torhs.init")
2021-01-28 09:38:21 +00:00
ip_id = scaleway_instance_ip.torhs_ip.id
2021-01-28 09:07:41 +00:00
}