Skip to content

resource_default_asg

ArthurHlt edited this page Aug 31, 2020 · 3 revisions

cloudfoundry_default_asg

Provides a resource for modifying the default staging or running application security groups.

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

Example Usage

The following example shows how to apply application security groups defined elsewhere in the Terraform configuration, to the default running set.

resource "cloudfoundry_default_asg" "running" {
    name = "running"
    asgs = [ cloudfoundry_asg.messaging.id, cloudfoundry_asg.services.id ]
}

Argument Reference

The following arguments are supported:

  • name - (Required) This should be one of running or staging
  • asgs - (Required) A list of references to application security groups IDs.

Import

The current Default Asg can be imported using the name (either running or staging constant) e.g.

$ terraform import cloudfoundry_default_asg.running <running/staging>
Clone this wiki locally