-
Notifications
You must be signed in to change notification settings - Fork 86
resource_service_plan_access
Provides a Cloud Foundry resource for managing access to service plans published by Cloud Foundry service brokers.
~> NOTE: Multiple instances of this resource can be used to share a given service plan with multiple orgs. ~> NOTE: This resource requires the provider to be authenticated with an account granted admin permissions.
The first example enables access to a specific plan of a given service broker to all organizations. The second example gives access to a specific org.
resource "cloudfoundry_service_plan_access" "org1-mysql-512mb" {
plan = cloudfoundry_service_broker.mysql.service_plans["p-mysql/512mb"]
public = true
}
resource "cloudfoundry_service_plan_access" "org1-mysql-512mb" {
plan = cloudfoundry_service_broker.mysql.service_plans["p-mysql/1gb"]
org = cloudfoundry_org.org1.id
}The following arguments are supported:
-
plan- (Required) The ID of the service plan to grant access to -
org- (Optional) The ID of the Org which should have access to the plan. Conflicts withpublic. -
public- (Optional) Boolean that controls the public state of the plan. Conflicts withorg.
When neither org and public are given, the resource sets plan's public visibility to false at global level.
The current Service Access can be imported using an id.
If given id matches existing service_plan_visibilities,
resource will be imported as a service_plan_access targeting an organization.
If the given id matches a service plan id,
then the resource will be imported as service_plan_access controlling plan's public state.
Otherwise, the import would fail.
E.g.
$ terraform import cloudfoundry_service_plan_access.org1-mysql-512mb 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