-
Notifications
You must be signed in to change notification settings - Fork 87
resource_feature_flag
ArthurHlt edited this page Dec 11, 2019
·
2 revisions
Provides a Cloud Foundry configuration resource for managing Cloud Foundry feature flags.
~> NOTE: This resource requires the provider to be authenticated with an account granted admin permissions.
The following is an example updates Cloud Foundry feature flags. Each of the flags will also be computed from current settings and exported if not changed.
resource "cloudfoundry_feature_flags" "config" {
feature_flags {
user_org_creation = false
private_domain_creation = true
app_bits_upload = true
app_scaling = true
route_creation = true
service_instance_creation = true
diego_docker = false
set_roles_by_username = true
unset_roles_by_username = true
task_creation = true
env_var_visibility = true
space_scoped_private_broker_creation = true
space_developer_env_var_visibility = true
}
}
The following arguments are supported:
-
feature_flags
- (Required) Feature flags enabling/disabling certain Cloud Foundry features.-
user_org_creation
- (Optional) Any user can create an organization. Minimum CC API version: 2.12. -
private_domain_creation
- (Optional) An Org Manager can create private domains for that organization. Minimum CC API version: 2.12. -
app_bits_upload
- (Optional) Space Developers can upload app bits. Minimum CC API version: 2.12. -
app_scaling
- (Optional) Space Developers can perform scaling operations (i.e. change memory, disk, or instances). Minimum CC API version: 2.12. -
route_creation
- (Optional) Space Developers can create routes in a space. Minimum CC API version: 2.12. -
service_instance_creation
- (Optional) Space Developers can create service instances in a space. Minimum CC API version: 2.12. -
diego_docker
- (Optional) Space Developers can push Docker apps. Minimum CC API version 2.33. -
set_roles_by_username
- (Optional) Org Managers and Space Managers can add roles by username. Minimum CC API version: 2.37. -
unset_roles_by_username
- (Optional) Org Managers and Space Managers can remove roles by username. Minimum CC API version: 2.37. -
task_creation
- (Optional) Space Developers can create tasks on their application. This feature is under development. Minimum CC API version: 2.47. -
env_var_visibility
- (Optional) All users can view environment variables. Minimum CC API version: 2.58. -
space_scoped_private_broker_creation
- (Optional) Space Developers can create space-scoped private service brokers. Minimum CC API version: 2.58. -
space_developer_env_var_visibility
- (Optional) Space Developers can view their v2 environment variables. Org Managers and Space Managers can view their v3 environment variables. Minimum CC API version: 2.58.
-
When not provided, optional fields are filled with their actual value in Cloud Foundry.
The current Config can be imported using the config
constant, e.g.
$ terraform import cloudfoundry_feature_flags.config config
- 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