terraform-provider-stackit

command module
v0.2.0 Latest Latest
Warning

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

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

README

Terraform Provider for STACKIT

Go Report Card GitHub Workflow Status Azure DevOps builds
GitHub release (latest by date) 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 v1.x which supports Protocol v6

Usage Example


terraform {
  required_providers {
    stackit = {
      source  = "SchwarzIT/stackit"
      version = "=0.2.0"
    }
  }
}

# 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.12"

  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