Provides a resource for managing inbound rulesets for Heroku Private Spaces.
# Create a new Heroku space
resource "heroku_space" "default" {
name = "test-space"
organization = "my-company"
region = "virginia"
}
# Allow all traffic EXCEPT 8.8.4.4 to access the HPS.
resource "heroku_space_inbound_ruleset" "default" {
space = heroku_space.default.id
rule {
action = "allow"
source = "0.0.0.0/0"
}
rule {
action = "deny"
source = "8.8.4.4/32"
}
}
The following arguments are supported:
space
- (Required) The ID of the space.rule
- (Required) At least one rule
block. Rules are documented below.A rule
block supports the following arguments:
action
- (Required) The action to apply this rule to. Must be one of allow
or deny
.source
- (Required) A CIDR block source for the rule.The following attributes are exported:
id
- The ID of the inbound ruleset.