Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 1.22 KB

security_group_spaces.md

File metadata and controls

7 lines (5 loc) · 1.22 KB

cloudfoundry_security_group_spaces

Provides a Cloud Foundry resource for binding and unbinding a security group from spaces. V3 API does not support binding a security group from the spaces endpoint but only from the security groups endpoint therefore a security group first approach has been adopted in contrast to the cloudfoundry_space_asgs in the community provider.

Cloudfoundry Provider Community Cloudfoundry Provider
resource "cloudfoundry_security_group_spaces" "space_bindings1" {
security_group = "38109de6-8059-41dd-b9fa-d802d8a35271"
running_spaces = ["e4ccb84e-5d8b-4ca2-b59a-012f4cf45c5d"]
}

resource "cloudfoundry_security_group_spaces" "space_bindings2" {
security_group = "531dd667-0fcf-44a0-8c6a-a541a062750d"
staging_spaces = ["e4ccb84e-5d8b-4ca2-b59a-012f4cf45c5d"]
}
resource "cloudfoundry_space_asgs" "spaceasgs" {
space = "e4ccb84e-5d8b-4ca2-b59a-012f4cf45c5d"
running_asgs = ["38109de6-8059-41dd-b9fa-d802d8a35271"]
staging_asgs = ["531dd667-0fcf-44a0-8c6a-a541a062750d"]
}