» google_folder_access_approval_settings

Access Approval enables you to require your explicit approval whenever Google support and engineering need to access your customer content.

To get more information about FolderSettings, see:

» Example Usage - Folder Access Approval Full

resource "google_folder" "my_folder" {
  display_name = "my-folder"
  parent       = "organizations/123456789"
}

resource "google_folder_access_approval_settings" "folder_access_approval" {
  folder_id           = google_folder.my_folder.folder_id
  notification_emails = ["testuser@example.com", "example.user@example.com"]

  enrolled_services {
    cloud_product = "all"
  }
}

» Argument Reference

The following arguments are supported:

  • enrolled_services - (Required) A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. Enrollment can only be done on an all or nothing basis. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded. Structure is documented below.

  • folder_id - (Required) ID of the folder of the access approval settings.

The enrolled_services block supports:

  • cloud_product - (Required) The product for which Access Approval will be enrolled. Allowed values are listed (case-sensitive):

    • all
    • App Engine
    • BigQuery
    • Cloud Bigtable
    • Cloud Key Management Service
    • Compute Engine
    • Cloud Dataflow
    • Cloud Identity and Access Management
    • Cloud Pub/Sub
    • Cloud Storage
    • Persistent Disk Note: These values are supported as input, but considered a legacy format:
    • all
    • appengine.googleapis.com
    • bigquery.googleapis.com
    • bigtable.googleapis.com
    • cloudkms.googleapis.com
    • compute.googleapis.com
    • dataflow.googleapis.com
    • iam.googleapis.com
    • pubsub.googleapis.com
    • storage.googleapis.com
  • enrollment_level - (Optional) The enrollment level of the service. Default value is BLOCK_ALL. Possible values are BLOCK_ALL.


  • notification_emails - (Optional) A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.

» Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format folders/{{folder_id}}/accessApprovalSettings

  • name - The resource name of the settings. Format is "folders/{folder_id}/accessApprovalSettings"

  • enrolled_ancestor - If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Folder.

» Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 4 minutes.
  • update - Default is 4 minutes.
  • delete - Default is 4 minutes.

» Import

FolderSettings can be imported using any of these accepted formats:

$ terraform import google_folder_access_approval_settings.default folders/{{folder_id}}/accessApprovalSettings
$ terraform import google_folder_access_approval_settings.default {{folder_id}}