Skip to content

Commit

Permalink
Pass allow_ssh variable on to space creation
Browse files Browse the repository at this point in the history
  • Loading branch information
rahearn committed Oct 11, 2024
1 parent 8aead5c commit 95ea3ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ module "egress_space" {
"trusted_local_networks_egress",
"public_networks_egress"
]
allow_ssh = false
}
```

Expand Down
5 changes: 3 additions & 2 deletions cg_space/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ data "cloudfoundry_org" "org" {
}

resource "cloudfoundry_space" "space" {
name = var.cf_space_name
org = data.cloudfoundry_org.org.id
name = var.cf_space_name
org = data.cloudfoundry_org.org.id
allow_ssh = var.allow_ssh
}

###
Expand Down
6 changes: 6 additions & 0 deletions cg_space/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ variable "deployers" {
description = "list of cloud.gov users to be assigned both SpaceManager and SpaceDeveloper roles"
default = []
}

variable "allow_ssh" {
type = bool
description = "(Optional) Allows SSH to application containers via the CF CLI. Defaults to true."
default = true
}

0 comments on commit 95ea3ba

Please sign in to comment.