Terraform Module for selecting a Cloud.dk server package based on hardware requirements.
- Terraform 0.12+
-
Create a new file called
server_selector.tf
with the following contents:module "server_selector" { source = "github.com/danitso/terraform-module-clouddk-server-selector" server_memory = 4096 server_processors = 2 }
-
Initialize your workspace
docker run -v .:/workspace -it --rm danitso/terraform:0.12 init
or using
cmd.exe
:docker run -v %CD%:/workspace -it --rm danitso/terraform:0.12 init
-
Provision the resources
docker run -v .:/workspace -it --rm danitso/terraform:0.12 apply -auto-approve
or using
cmd.exe
:docker run -v %CD%:/workspace -it --rm danitso/terraform:0.12 apply -auto-approve
You can modify the configuration by changing the Input Variables on the module
block.
The minimum amount of memory (in megabytes).
The minimum number of processors (cores).
The package id.