Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error handling for ALREADY_EXISTS in IAM CreateServiceAccount call #16927

Conversation

modular-magician
Copy link
Collaborator

Introduce an optional resource argument to Google Cloud IAM Service Account. If ignore_create_already_exists is set to true, resource creation would succeed if response error is 409 ALREADY_EXISTS.

Fixes #16185
Fixes #10193

Release Note Template for Downstream PRs (will be copied)

iam: introducde an optional resource argument to Google Cloud IAM Service Account. If `ignore_create_already_exists` is set to true, resource creation would succeed if response error is 409 ALREADY_EXISTS.

Derived from GoogleCloudPlatform/magic-modules#9727

hashicorp#9727)

* Add error handling for ALREADY_EXISTS in IAM CreateServiceAccount call

* Use a separate unit test for create_ignore_already_exists
[upstream:612663010b4da3022cade6f2a07f4d6beb2b6d51]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 2f1ca7c into hashicorp:main Jan 8, 2024
1 check passed
Copy link

github-actions bot commented Feb 8, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deploying Resource results in 'inconsistent' error Provider produced inconsistent result after apply
1 participant