Skip to content

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

License

Notifications You must be signed in to change notification settings

danitso/terraform-module-clouddk-server-selector

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages