You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"google_service_account""datadog" {
account_id="datadog"display_name="Datadog Crawler"
}
resource"google_service_account_key""datadog" {
service_account_id=google_service_account.datadog.namekeepers={
rotation_time ="1"# <- update this here to trigger the key rotation
}
}
resource"google_project_iam_member""datadog_service_role" {
# Roles recommended by datadog# https://docs.datadoghq.com/integrations/google_cloud_platform/?tab=datadogussite#setupfor_each=toset(["roles/compute.viewer", "roles/monitoring.viewer", "roles/cloudasset.viewer"])
role=each.keymember="serviceAccount:${google_service_account.datadog.email}"
}
resource"datadog_integration_gcp""this" {
project_id=data.google_project.this.project_idprivate_key_id=jsondecode(base64decode(google_service_account_key.datadog.private_key))["private_key_id"]
private_key=jsondecode(base64decode(google_service_account_key.datadog.private_key))["private_key"]
client_email=google_service_account.datadog.emailclient_id=google_service_account.datadog.unique_idhost_filters="!goog-gke-node"
}
Expected Behavior
Updating the private_key of the gcp integration updates the key in datadog. This may include a destroy + create.
Actual Behavior
Updating the private_key of the gcp integration doesn't update the key in datadog. The gcp integration continues to use the old key and becomes "broken" in datadog.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Update keepers.rotation_time in the google_service_account_key resource to anything but "1"
terraform apply again
Important Factoids
Rotating the gcp key doesn't change the key id but only the key content.
The text was updated successfully, but these errors were encountered:
Hi there,
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Updating the
private_key
of the gcp integration updates the key in datadog. This may include a destroy + create.Actual Behavior
Updating the
private_key
of the gcp integration doesn't update the key in datadog. The gcp integration continues to use the old key and becomes "broken" in datadog.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
keepers.rotation_time
in thegoogle_service_account_key
resource to anything but "1"terraform apply
againImportant Factoids
The text was updated successfully, but these errors were encountered: