Skip to content

resource_space_quota

ArthurHlt edited this page Aug 31, 2020 · 3 revisions

cloudfoundry_space_quota

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.

Example Usage

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
}

Argument Reference

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

Attributes Reference

The following attributes are exported:

  • id - The GUID of the quota

Import

An existing space Quota can be imported using its guid, e.g.

$ terraform import cloudfoundry_space_quota.10g a-guid
Clone this wiki locally