-
Notifications
You must be signed in to change notification settings - Fork 87
resource_service_broker
ArthurHlt edited this page Dec 8, 2019
·
3 revisions
Provides a Cloud Foundry resource for managing service brokers definitions.
~> NOTE: To visibility of service plans provided by a registred service brijer, use the cloudfoundry_service_plan_access resource. ~> NOTE: This resource requires the provider to be authenticated with an account granted org manager permissions. ~> NOTE: If catalog is accessible to terraform broker will be automatically updated if catalog change from previous version in resource.
The following example registers a service broker.
resource "cloudfoundry_service_broker" "mysql" {
name = "test-mysql"
url = "http://mysql-broker.local.pcfdev.io"
username = "admin"
password = "admin"
}
The following arguments are supported:
-
name
- (Required) The name of the service broker -
url
- (Required) The URL to the service broker API -
username
- (Required) The user name to use to authenticate against the service broker API calls -
password
- (Required) The password to authenticate against the service broker API calls -
space
- (Optional) The ID of the space to scope this broker to (registering the broker as space-scoped). By default, registers standard brokers -
fail_when_catalog_not_accessible
- (Optional) Set to true if you want to see errors when getting service broker catalog (default behaviour is silently failed).
The following attributes are exported:
-
id
- The GUID of the service broker -
service_plans
- Map of service plan GUIDs keyed by service "<service name>/<plan name>" -
services
- Map of service service GUIDs keyed by service name
An existing Service Broker can be imported using its guid, e.g.
$ terraform import cloudfoundry_service_broker.mysql 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