Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.28 KB

File metadata and controls

57 lines (38 loc) · 1.28 KB

Server Selector

Terraform Module for selecting a Cloud.dk server package based on hardware requirements.

Requirements

Getting started

  1. 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
    }
  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
  3. 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.

Input Variables

server_memory

The minimum amount of memory (in megabytes).

server_processors

The minimum number of processors (cores).

Output Variables

server_type

The package id.