You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/space.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,34 +10,35 @@ description: |-
10
10
11
11
Provides a Heroku Private Space resource for running apps in isolated, highly available, secure app execution environments.
12
12
13
-
Heroku Private Spaces support two generations:
13
+
Both generations of the Heroku platform offer Private Spaces:
14
14
15
-
***Cedar** (default): The original generation supporting all Private Space features including Shield spaces
16
-
***Fir**: The next-generation platform with enhanced capabilities for Cloud Native Buildpacks (CNB), but with some feature limitations
15
+
***Cedar** (default): The [Cedar generation](https://devcenter.heroku.com/articles/private-spaces#additional-features-for-cedar-private-spaces) supports all Private Space features, including Shield spaces.
16
+
*```
17
+
* **Fir**: The next-generation platform supports enhanced capabilities for Cloud Native Buildpacks (CNB), but with has some [feature limitations](https://devcenter.heroku.com/articles/generations?preview=1#feature-parity) compared to Cedar Private Spaces.
17
18
18
-
~> **Note:**The `generation` parameter cannot be changed after space creation. Choose carefully based on your application requirements.
19
+
~> **Note:** You can't change the `generation` parameter after space creation. Choose carefully based on your application requirements.
19
20
20
21
## Example Usage
21
22
22
23
A Heroku "team" was originally called an "organization", and that is still
23
24
the identifier used in this resource.
24
25
25
26
```hcl-terraform
26
-
// Create a new Cedargeneration space (default)
27
+
// Create a new Cedar-generation space (default)
27
28
resource "heroku_space" "cedar_space" {
28
29
name = "test-cedar-space"
29
30
organization = "my-company"
30
31
region = "virginia"
31
-
shield = true // Cedar supports shield spaces
32
+
shield = true // Cedar supports Shield spaces
32
33
}
33
34
34
-
// Create a new Firgeneration space
35
+
// Create a new Fir-generation space
35
36
resource "heroku_space" "fir_space" {
36
37
name = "test-fir-space"
37
38
organization = "my-company"
38
39
region = "virginia"
39
40
generation = "fir"
40
-
// Note: Fir generation does not support shield spaces
41
+
// Note: Shield spaces are unavailable for the Fir generation.
41
42
}
42
43
43
44
// Create a new Heroku app in test-space, same region
@@ -57,13 +58,13 @@ The following arguments are supported:
57
58
58
59
*`name` - (Required) The name of the Private Space.
59
60
*`organization` - (Required) The name of the Heroku Team which will own the Private Space.
60
-
*`generation` - (Optional) The generation of the Private Space. Valid values are `cedar` and `fir`. Defaults to `cedar` for backward compatibility. Cannot be changed after creation.
61
+
*`generation` - (Optional) The generation of the Heroku platform for the space. Valid values are `cedar` and `fir`. Defaults to `cedar` for backward compatibility. It can't be changed after space creation.
61
62
*`cidr` - (Optional) The RFC-1918 CIDR the Private Space will use.
62
63
It must be a /16 in 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16
63
64
*`data_cidr` - (Optional) The RFC-1918 CIDR that the Private Space will use for the Heroku-managed peering connection
64
65
that's automatically created when using Heroku Data add-ons. It must be between a /16 and a /20
65
-
*`region` - (Optional) provision in a specific [Private Spaces region](https://devcenter.heroku.com/articles/regions#viewing-available-regions).
66
-
*`shield` - (Optional) provision as a [Shield Private Space](https://devcenter.heroku.com/articles/private-spaces#shield-private-spaces). Note: Shield spaces are only supported for `cedar` generation.
66
+
*`region` - (Optional) The [region](https://devcenter.heroku.com/articles/regions#viewing-available-regions) to provision a space in.
67
+
*`shield` - (Optional) `true` if provisioning as a [Shield Private Space](https://devcenter.heroku.com/articles/private-spaces#shield-private-spaces). Note: Shield spaces are only supported for the`cedar` generation.
67
68
68
69
## Attributes Reference
69
70
@@ -72,7 +73,7 @@ The following attributes are exported:
72
73
*`id` - The ID (UUID) of the space.
73
74
*`name` - The space's name.
74
75
*`organization` - The space's Heroku Team.
75
-
*`generation` - The space's generation (`cedar` or `fir`).
76
+
*`generation` - The generation of the Heroku platform for the space (`cedar` or `fir`).
0 commit comments