heroku_space

Provides a Heroku Space resource for running apps in isolated, highly available, secure app execution environments.

Example Usage

// Create a new Heroku space
resource "heroku_space" "default" {
  name = "test-space"
  organization = "my-company"
  region = "virginia"
}

// Create a new Heroku app in test-space
resource "heroku_app" "default" {
  name = "test-app"
  space = "${heroku_space.default.name}"
  organization = {
    name = "my-company"
  }
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the space.
  • organization - (Required) The name of the organization which will own the space.
  • region - (Optional) The region that the space should be created in.
  • shield - (Optional) Whether or not the private space should be shielded.

Attributes Reference

The following attributes are exported:

Import

Spaces can be imported using the space id, e.g.

$ terraform import heroku_space.foobar MySpace

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/heroku/r/space.html