Skip to content

iitsDelbruegger/terraform-otc-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common Terraform Modules for Open Telekom Cloud

Apache-2.0 License ViewCount

These are commonly usable Terraform Modules for the Open Telekom Cloud based on the awesome Terraform OTC Provider.

These modules are developed by iits-consulting - your Cloud-Native Innovation Teams as a Service!

Usage:

You can import this whole repo as one module (quickstart) or utilize the modules individually (recommended for production).

Quickstart

  1. We recommend this kind of terraform folder structure:

    terraform-architecture

  2. ( optional) Set up a secure remote terraform state . Copy the backend output of that module to your settings.tf

  3. Add the project factory module

# System variables that have to be set for this example environment:
# - OS_ACCESS_KEY
# - OS_SECRET_KEY
# - OS_DOMAIN_NAME
# - OS_TENANT_NAME or OS_PROJECT_NAME

module "iits-otc-demo" {
  source  = "iits-consulting/project-factory/opentelekomcloud"
  version = "1.0.2"
  ...
}

Importing Modules Individually

module "vpc" {
  source                = "iits-consulting/project-factory/opentelekomcloud//modules/vpc"
  version               = "1.0.2"
  vpc_cidr              = local.vpc_cidr
  vpc_name              = "vpc-otc-demo-dev"
  stage_name            = "dev"
  vpc_subnet_cidr       = local.vpc_cidr
  vpc_subnet_gateway_ip = local.vpc_subnet_gateway_ip
}

Common Concepts behind the modules

There are some variables that occur on multiple modules. The ideas behind them are explained here.

Context

The "context_name" variable should be a human-readable name of the project you are working on or the team you are provisioning infrastructure for.

Stage

The "stage" variable is utilized to distinguish between multiple mostly equal, but separate environments like "dev", " test", "qa", "prod".

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages