Skip to content

Commit b3719f5

Browse files
authored
Merge branch 'master' into fir-compatibility
Signed-off-by: Mars Hall <[email protected]>
2 parents 9353a5d + 178a3be commit b3719f5

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed

docs/resources/space_app_access.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ resource "heroku_space" "default" {
2424
2525
// Give an existing team member create_apps permissions to the Private Space
2626
resource "heroku_space_app_access" "member1" {
27-
space = heroku_space.default.id
27+
space = heroku_space.default.name
2828
2929
permissions = ["create_apps"]
3030
}
3131
3232
// Remove all permissions from an existing team member
3333
resource "heroku_space_app_access" "member2" {
34-
space = heroku_space.default.id
34+
space = heroku_space.default.name
3535
3636
permissions = []
3737
}
@@ -41,7 +41,7 @@ resource "heroku_space_app_access" "member2" {
4141

4242
The following arguments are supported:
4343

44-
* `space` - (Required) The ID of the Private Space.
44+
* `space` - (Required) The name of the Private Space (ID/UUID is acceptable too, but must be used consistently).
4545
* `email` - (Required) The email of the existing Heroku Team member.
4646
* `permissions` - (Required) The permissions to grant the team member for the Private Space.
4747
Currently `create_apps` is the only supported permission. If not provided the member will have no permissions to the space.

docs/resources/space_inbound_ruleset.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ resource "heroku_space" "default" {
2626
2727
# Allow all traffic EXCEPT 8.8.4.4 to access the HPS.
2828
resource "heroku_space_inbound_ruleset" "default" {
29-
space = heroku_space.default.id
29+
space = heroku_space.default.name
3030
3131
rule {
3232
action = "allow"
@@ -44,7 +44,7 @@ resource "heroku_space_inbound_ruleset" "default" {
4444

4545
The following arguments are supported:
4646

47-
* `space`: (Required) The ID of the space.
47+
* `space`: (Required) The name of the Private Space (ID/UUID is acceptable too, but must be used consistently).
4848
* `rule`: (Required) The rule to apply. You must provide at least one `rule` block, as documented below.
4949

5050
A `rule` block supports the following arguments:

docs/resources/space_peering_connection_accepter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "aws_vpc_peering_connection" "request" {
2929
3030
# Accept the request.
3131
resource "heroku_space_peering_connection_accepter" "accept" {
32-
space = heroku_space.peer_space.id
32+
space = heroku_space.peer_space.name
3333
vpc_peering_connection_id = aws_vpc_peering_connection.request.id
3434
}
3535
```
@@ -38,7 +38,7 @@ resource "heroku_space_peering_connection_accepter" "accept" {
3838

3939
The following arguments are supported:
4040

41-
* `space`: (Required) The ID of the space.
41+
* `space`: (Required) The name of the Private Space (ID/UUID is acceptable too, but must be used consistently).
4242
* `vpc_peering_connection_id`: (Required) The peering connection request ID.
4343

4444
## Attributes Reference

docs/resources/space_vpn_connection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ resource "heroku_space" "default" {
2323
// Connect the Heroku space to another network with a VPN
2424
resource "heroku_space_vpn_connection" "office" {
2525
name = "office"
26-
space = heroku_space.default.id
26+
space = heroku_space.default.name
2727
public_ip = "203.0.113.1"
2828
routable_cidrs = ["192.168.1.0/24"]
2929
}
@@ -34,7 +34,7 @@ resource "heroku_space_vpn_connection" "office" {
3434
The following arguments are supported:
3535

3636
* `name` - (Required) The name of the VPN connection.
37-
* `space` - (Required) The ID of the Heroku Private Space where the VPN connection will be established.
37+
* `space` - (Required) The name of the Private Space (ID/UUID is acceptable too, but must be used consistently).
3838
* `public_ip` - (Required) The public IP address of the VPN endpoint on the network where the VPN connection will be established.
3939
* `routable_cidrs` - (Required) A list of IPv4 CIDR blocks used by the network where the VPN connection will be established.
4040

heroku/resource_heroku_space_app_access.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ func resourceHerokuSpaceAppAccessRead(d *schema.ResourceData, meta interface{})
7676
return err
7777
}
7878
d.SetId(spaceAppAccess.User.ID)
79-
d.Set("space", spaceAppAccess.Space.Name)
8079
d.Set("email", spaceAppAccess.User.Email)
8180
d.Set("permissions", createPermissionsList(spaceAppAccess))
8281
return nil

heroku/resource_heroku_space_inbound_ruleset.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ func resourceHerokuSpaceInboundRulesetRead(d *schema.ResourceData, meta interfac
101101

102102
d.SetId(ruleset.ID)
103103
d.Set("rule", rulesList)
104-
d.Set("space", ruleset.Space.Name)
105104

106105
return nil
107106
}

0 commit comments

Comments
 (0)