Update Stackdriver integration to use raw credentials #184
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improve use of credentials for Stackdriver, fetched from Google Service Account key when enable log and metric integrations.
New arguments
Argument updated with Computed
Log & metric:
Use google_service_account_key resource from google provider to populate new argument
credentials
. That will base64decode the data and map it into json, to further set values forproject_id, client_email, private_key, private_key_id
.Make sure to exclude argument
tags
if not used or set to "" in request body.Old way to add the private_key is still supported. But clarified in documentation on what decoding is needed.
Metrics:
Make sure to exclude arguments
queue_allowlist, vhost_allowlist
if not used or set to "" in request body.