Skip to content

humanitec-tf-modules/common-resource-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common Resource Types Module

A reusable Terraform module for setting commonly used resource-types for the Humanitec Platform Orchestrator.

Overview

This module provides reusable configuration for installing standard resource types that you may see frequently in tutorials, demos, and reference implementations.

Currently, this supports the following resource types which can each be opted-in to by setting the appropriate enable-xyz flag (see the inputs section below):

  • score-workload
  • k8s-namespace
  • k8s-service-account
  • env

This set of types will be expanded over time as we add new modules to github.com/humanitec-tf-modules.

Usage

In your IaC you use to configure your Platform Orchestrator, you can specify the module and enable types as you need them.

module "common_resource_types" {
    source = "github.com/humanitec-tf-modules/common-resource-types"

    enable-score-workload = true
    enable-env = true
    // etc.
}

Requirements

Name Version
platform-orchestrator 2.10.2

Providers

Name Version
platform-orchestrator 2.10.2

Modules

No modules.

Resources

Name Type
platform-orchestrator_resource_type.env resource
platform-orchestrator_resource_type.k8s-namespace resource
platform-orchestrator_resource_type.k8s-service-account resource
platform-orchestrator_resource_type.score-workload resource

Inputs

Name Description Type Default Required
enable-env Whether to install the env resource type bool false no
enable-k8s-namespace Whether to install the k8s-namespace resource type bool false no
enable-k8s-service-account Whether to install the k8s-service-account resource type bool false no
enable-score-workload Whether to install the score-workload resource type bool false no
resource-type-prefix A prefix to add to the generated resource types string "" no

Outputs

Name Description
env-type The id of the env resource type if enabled
k8s-namespace-type The id of the k8s-namespace resource type if enabled
k8s-service-account-type The id of the k8s-service-account resource type if enabled
score-workload-type The id of the score-workload resource type if enabled

About

A module for provisioning common resource types in the platform orchestrator

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages