-
Notifications
You must be signed in to change notification settings - Fork 87
resource_isolation_segment
Provides a Cloud Foundry resource for managing Cloud Foundry isolation segment.
~> NOTE: This resource requires the provider to be authenticated with an account granted admin permissions. ~> NOTE: Resource will only modify entitlement managed by itself (do not destroy or affect previous entitlement set outside of terraform).
See cloudfoundry_isolation_segment_entitlement
resource to assign the segment to one-or-more
origanizations.
~> NOTE: Note: An isolation segment cannot be deleted if it is entitled to any organization.
Make sure to request deletion of all cloudfoundry_isolation_segment_entitlement
resources prior to request deletion of the associated cloudfoundry_isolation_segment
The following example creates an isolation segment named public_exposure
resource "cloudfoundry_isolation_segment" "public" {
name = "public_exposure"
}
The following arguments are supported:
-
name
- (Required, String) Isolation Segment names must be unique across the entire system, and case is ignored when checking for uniqueness. The name must match the value specified in the placement_tags section of the Diego manifest file. If the names do not match, Cloud Foundry fails to place apps in the isolation segment when apps are started or restarted in the space assigned to the isolation segment. -
labels
- (Optional, map string of string) Add labels as described here. Works only on cloud foundry with api >= v3.63. -
annotations
- (Optional, map string of string) Add annotations as described here. Works only on cloud foundry with api >= v3.63.
The following attributes are exported:
-
id
- The GUID of the segment
An existing segment can be imported using its guid, e.g.
$ terraform import cloudfoundry_isolation_segment.s1 a-guid
- cloudfoundry_app
- cloudfoundry_asg
- cloudfoundry_domain
- cloudfoundry_info
- cloudfoundry_isolation_segment
- cloudfoundry_org
- cloudfoundry_org_quota
- cloudfoundry_route
- cloudfoundry_router_group
- cloudfoundry_service
- cloudfoundry_service_instance
- cloudfoundry_service_key
- cloudfoundry_space
- cloudfoundry_space_quota
- cloudfoundry_stack
- cloudfoundry_user
- cloudfoundry_user_provided_service
- cloudfoundry_app
- cloudfoundry_asg
- cloudfoundry_buildpack
- cloudfoundry_default_asg
- cloudfoundry_domain
- cloudfoundry_evg
- cloudfoundry_feature_flag
- cloudfoundry_isolation_segment
- cloudfoundry_isolation_segment_entitlement
- cloudfoundry_network_policy
- cloudfoundry_org
- cloudfoundry_org_quota
- cloudfoundry_org_users
- cloudfoundry_private_domain_access
- cloudfoundry_route
- cloudfoundry_route_service_binding
- cloudfoundry_service_broker
- cloudfoundry_service_instance
- cloudfoundry_service_key
- cloudfoundry_service_plan_access
- cloudfoundry_space
- cloudfoundry_space_quota
- cloudfoundry_space_users
- cloudfoundry_user
- cloudfoundry_user_provided_service