From 21699e94db3a6ac74b6eac2f8d237d6141b72274 Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Tue, 19 Feb 2019 07:40:00 -0800 Subject: [PATCH] Note that service account creation is eventually consistent. --- .../website/docs/r/google_service_account.html.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/third_party/terraform/website/docs/r/google_service_account.html.markdown b/third_party/terraform/website/docs/r/google_service_account.html.markdown index 40efb4212b20..8b4327053d29 100644 --- a/third_party/terraform/website/docs/r/google_service_account.html.markdown +++ b/third_party/terraform/website/docs/r/google_service_account.html.markdown @@ -10,6 +10,11 @@ description: |- Allows management of a [Google Cloud Platform service account](https://cloud.google.com/compute/docs/access/service-accounts) +-> Creation of service accounts is eventually consistent, and that can lead to +errors when you try to apply IAM roles to service accounts immediately after +creation. If using these resources in the same config, you can add a +[`sleep` using `local-exec`](https://github.com/hashicorp/terraform/issues/17726#issuecomment-377357866). + ## Example Usage This snippet creates a service account, then gives it objectViewer