Skip to content

Latest commit

 

History

History
98 lines (74 loc) · 1.42 KB

heroku_space_inbound_ruleset.md

File metadata and controls

98 lines (74 loc) · 1.42 KB

heroku_space_inbound_ruleset

back

Index

Terraform

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

top

Example Usage

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

  # space - (required) is a type of string
  space = null

  rule = [{
    action = null
    source = null
  }]
}

top

Variables

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

variable "rule" {
  description = "nested block: NestingSet, min items: 1, max items: 0"
  type = set(object(
    {
      action = string
      source = string
    }
  ))
}

top

Resource

resource "heroku_space_inbound_ruleset" "this" {
  # space - (required) is a type of string
  space = var.space

  dynamic "rule" {
    for_each = var.rule
    content {
      # action - (required) is a type of string
      action = rule.value["action"]
      # source - (required) is a type of string
      source = rule.value["source"]
    }
  }

}

top

Outputs

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

output "this" {
  value = heroku_space_inbound_ruleset.this
}

top