Skip to content

resource_org_quota

ArthurHlt edited this page Dec 11, 2019 · 3 revisions

cloudfoundry_org_quota

Provides a Cloud Foundry resource to manage org quotas definitions.

~> NOTE: This resource requires the provider to be authenticated with an account granted admin permissions.

~> NOTE: Once created, an org quota is assigned to one or more orgs through the org resource

Example Usage

The following example creates a quota, and applies it to an Org.

resource "cloudfoundry_org_quota" "large" {
    name = "large"
    allow_paid_service_plans = false
    instance_memory = 2048
    total_memory = 51200
    total_app_instances = 100
    total_routes = 50
    total_services = 200
    total_route_ports = 5
}

resource "cloudfoundry_org" "o1" {
    name = "organization-one"
    quota = "${cloudfoundry_org_quota.large.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

A Quota can be imported using its guid, e.g.

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