heroku_space

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

Example Usage

A Heroku "team" was originally called an "organization", and that is still the identifier used in this resource.

// 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, same region
resource "heroku_app" "default" {
  name = "test-app"
  region = "virginia"
  space = heroku_space.default.id
  organization = {
    name = "my-company"
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

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

$ terraform import heroku_space.foobar MySpace