terraform-provider-stackit

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

Terraform Provider for STACKIT

Go Report Card GitHub go.mod Go version of a Go module License

This provider is built and maintained by the STACKIT community in Schwarz IT and is not an official STACKIT provider

The provider is built using Terraform's plugin framework, therefore we recommend using Terraform CLI v1.x which supports Protocol v6

Usage Example


terraform {
  required_providers {
    stackit = {
      source  = "registry.terraform.io/schwarzit/stackit"
      version = ">=0.1.2"
    }
  }
}

# Configure the STACKIT Provider
provider "stackit" {
  service_account_id    = var.service_account_id
  service_account_token = var.service_account_token
  customer_account_id   = var.customer_account_id
}

# create a project
resource "stackit_project" "example" {
  name                  = var.project_name
  billing_ref           = var.project_billing_ref
  owner                 = var.project_owner
  enable_kubernetes     = true
}

# create a SKE cluster
resource "stackit_kubernetes_cluster" "example" {
  name               = "my-cluster"
  project_id         = stackit_project.example.id
  kubernetes_version = "1.23.5"

  node_pools = [{
    name         = "example"
    machine_type = "c1.2"
  }]
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL