Skip to content

Latest commit

 

History

History
141 lines (113 loc) · 2.5 KB

heroku_space.md

File metadata and controls

141 lines (113 loc) · 2.5 KB

heroku_space

back

Index

Terraform

terraform {
  required_providers {
    heroku = ">= 4.1.1"
  }
}

top

Example Usage

module "heroku_space" {
  source = "./modules/heroku/r/heroku_space"

  # cidr - (optional) is a type of string
  cidr = null
  # data_cidr - (optional) is a type of string
  data_cidr = null
  # name - (required) is a type of string
  name = null
  # organization - (required) is a type of string
  organization = null
  # region - (optional) is a type of string
  region = null
  # shield - (optional) is a type of bool
  shield = null
  # trusted_ip_ranges - (optional) is a type of set of string
  trusted_ip_ranges = []
}

top

Variables

variable "cidr" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "data_cidr" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "name" {
  description = "(required)"
  type        = string
}

variable "organization" {
  description = "(required)"
  type        = string
}

variable "region" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "shield" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "trusted_ip_ranges" {
  description = "(optional)"
  type        = set(string)
  default     = null
}

top

Resource

resource "heroku_space" "this" {
  # cidr - (optional) is a type of string
  cidr = var.cidr
  # data_cidr - (optional) is a type of string
  data_cidr = var.data_cidr
  # name - (required) is a type of string
  name = var.name
  # organization - (required) is a type of string
  organization = var.organization
  # region - (optional) is a type of string
  region = var.region
  # shield - (optional) is a type of bool
  shield = var.shield
  # trusted_ip_ranges - (optional) is a type of set of string
  trusted_ip_ranges = var.trusted_ip_ranges
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = heroku_space.this.id
}

output "outbound_ips" {
  description = "returns a list of string"
  value       = heroku_space.this.outbound_ips
}

output "trusted_ip_ranges" {
  description = "returns a set of string"
  value       = heroku_space.this.trusted_ip_ranges
}

output "this" {
  value = heroku_space.this
}

top