Open dhermes opened 2 months ago
I can confirm that this is still an issue in provider v3.43.1. Testing the example provided in the Datadog Terraform documentation it works great creating new integrations. When importing the resources all looks fine but when running the terraform plan
with the imported resources the resource google_service_account_iam_member.sa_iam
throws the following error:
Error: Error in function call
on .terraform/modules/datadog_example.tf line 29, in resource "google_service_account_iam_member" "sa_iam":
29: member = format("serviceAccount:%s", datadog_integration_gcp_sts.foo.delegate_account_email)
├────────────────
│ while calling format(format, args...)
│ datadog_integration_gcp_sts.foo.delegate_account_email is null
With TF_LOG=debug
set as suggested in #2197 I could not see any requests to /api/v2/integration/gcp/sts_delegate
If it helps some one else a temporary workaround is to set the member = "serviceAccount:the_delegate_account_email"
manually in the example when doing the plan
and apply
of the imported resources.
Datadog Terraform Provider Version
3.39.0
Terraform Version
1.9.0
What resources or data sources are affected?
datadog_integration_gcp_sts
Terraform Configuration Files
Relevant debug or panic output
No response
Expected Behavior
Actual Behavior
Steps to Reproduce
Important Factoids
No response
References
No response