-
Notifications
You must be signed in to change notification settings - Fork 87
resource_space_users
ArthurHlt edited this page Aug 31, 2020
·
3 revisions
Provides a Cloud Foundry resource for managing Cloud Foundry space members.
~> NOTE: This resource requires the provider to be authenticated with an account granted at least with OrgManager
permission.
~> NOTE: Only modify users managed in the resource, and ignore any existing other users provisioned elsewhere if not using force
attribute.
The following example creates an org with a specific org-wide quota.
resource "cloudfoundry_space_users" "su1" {
space = "space-id"
managers = [
data.cloudfoundry_user.tl.id
]
developers = [
data.cloudfoundry_user.tl.id,
data.cloudfoundry_user.dev1.id,
data.cloudfoundry_user.dev2.id
]
auditors = [
data.cloudfoundry_user.adr.id,
data.cloudfoundry_user.dev3.id
]
}
The following arguments are supported:
-
space
- (Required) Space associated guid. -
managers
- (Optional) List of users to assign SpaceManager role to. Defaults to empty list. -
developers
- (Optional) List of users to assign SpaceDeveloper role to. Defaults to empty list. -
auditors
- (Optional) List of users to assign SpaceAuditor role to. Defaults to empty list. -
force
- (Optional, Boolean) Set to true to enforce that users defined here will be only theses users defined (remove users roles from external modification).
An existing Users list can be imported using its space guid, e.g.
$ terraform import cloudfoundry_space_users.su1 space-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