-
Notifications
You must be signed in to change notification settings - Fork 87
resource_space_quota
ArthurHlt edited this page Aug 31, 2020
·
3 revisions
Provides a Cloud Foundry resource to manage space quotas definitions.
~> NOTE: This resource requires the provider to be authenticated with an account granted admin permissions.
The following example creates a space quota that can be then applied to one or more space.
resource "cloudfoundry_space_quota" "10g" {
name = "10g"
allow_paid_service_plans = false
instance_memory = 512
total_memory = 10240
total_app_instances = 10
total_routes = 5
total_services = 20
org = cloudfoundry_org.myorg.id
}
The following arguments are supported:
-
name
- (Required) The name you use to identify the quota or plan in Cloud Foundry -
allow_paid_service_plans
- (Required) Determines whether users can provision instances of non-free service plans. Does not control plan visibility. When false, non-free service plans may be visible in the marketplace but instances can not be provisioned. -
instance_memory
- (Optional) Maximum memory per application instance -
total_memory
- (Required) Maximum memory usage allowed -
total_app_instances
- (Optional) Maximum app instances allowed -
total_routes
- (Required) Maximum routes allowed -
total_services
- (Required) Maximum services allowed -
total_route_ports
- (Optional) Maximum routes with reserved ports -
total_private_domains
- (Optional) Maximum number of private domains allowed to be created within the Org
The following attributes are exported:
-
id
- The GUID of the quota
An existing space Quota can be imported using its guid, e.g.
$ terraform import cloudfoundry_space_quota.10g 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