-
Notifications
You must be signed in to change notification settings - Fork 87
resource_route_service_binding
ArthurHlt edited this page Aug 31, 2020
·
3 revisions
Provides a Cloud Foundry resource for binding of service instances to routes.
The following example binds a specific route to the given service instance.
resource "cloudfoundry_route_service_binding" "route-bind" {
service_instance = cloudfoundry_service_instance.myservice.id
route = cloudfoundry_route.myroute.id
}
The following arguments are supported:
-
service_instance
- (Required, String) The ID the service instance to bind to the route. -
route
- (Required, String) The ID of the route to bind the service instance to. -
json_params
- (Optional, String) Arbitrary parameters in the form of stringified JSON object to pass to the service bind handler. Defaults to empty map.
Existing Route Service Binding can be imported using the composite id
formed
with service instance's GUID and route's GUID.
Import does not support json_params
attribute. Specifying non-empty json_params
in
terraform files after import will lead to the recreation of the resource.
E.g.
$ terraform import cloudfoundry_route_service_binding.mybind <service-guid>/<route-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