google_apigee_sync_authorization

Authorize the Synchronizer to download environment data from the control plane.

To get more information about SyncAuthorization, see:

Example Usage - Apigee Sync Authorization Basic Test

resource "google_project" "project" {
  project_id      = "my-project"
  name            = "my-project"
  org_id          = "123456789"
  billing_account = "000000-0000000-0000000-000000"
}

resource "google_project_service" "apigee" {
  project = google_project.project.project_id
  service = "apigee.googleapis.com"
}

resource "google_apigee_organization" "apigee_org" {
  analytics_region   = "us-central1"
  project_id         = google_project.project.project_id

  runtime_type       = "HYBRID"
  depends_on         = [google_project_service.apigee]
}

resource "google_service_account" "service_account" {
  account_id   = "my-account"
  display_name = "Service Account"
}

resource "google_project_iam_member" "synchronizer-iam" {
  project = google_project.project.project_id
  role    = "roles/apigee.synchronizerManager"
  member = "serviceAccount:${google_service_account.service_account.email}"
}

resource "google_apigee_sync_authorization" "apigee_sync_authorization" {
  name       = google_apigee_organization.apigee_org.name
  identities = [
    "serviceAccount:${google_service_account.service_account.email}",
  ]
  depends_on = [google_project_iam_member.synchronizer-iam]
}

Argument Reference

The following arguments are supported:


Attributes Reference

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

Timeouts

This resource provides the following Timeouts configuration options:

Import

SyncAuthorization can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import SyncAuthorization using one of the formats above. For example:

import {
  id = "organizations/{{name}}/syncAuthorization"
  to = google_apigee_sync_authorization.default
}

When using the terraform import command, SyncAuthorization can be imported using one of the formats above. For example:

$ terraform import google_apigee_sync_authorization.default organizations/{{name}}/syncAuthorization
$ terraform import google_apigee_sync_authorization.default {{name}}