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
The newrelic_account_management resource creates a brand new account with 2 prepopulated default API keys with names:
License Key for <Account name>
Browser Key for <Account name>
However, there is no Terraform data source to retrieve them programmatically in another place.
It would be nice to have newrelic_api_access_key data source counterpart to the resource.
data "newrelic_api_access_key" "default" {
account_id = 1234567
key_type = "INGEST"
ingest_type = "LICENSE"
name = "License Key for <Account name>"
}
# Pass key as env var to k8s deployment
env {
name = "NEW_RELIC_LICENSE_KEY"
value = data.newrelic_api_access_key.default.key
}
Hi @Tensho - thank you for reporting this :) this is an interesting usecase. The team is currently a bit occupied with things to do - we'll keep you posted if we plan on taking this up sometime, after consideration. Thanks!
Feature Description
The
newrelic_account_management
resource creates a brand new account with 2 prepopulated default API keys with names:License Key for <Account name>
Browser Key for <Account name>
However, there is no Terraform data source to retrieve them programmatically in another place.
It would be nice to have
newrelic_api_access_key
data source counterpart to the resource.Additional context
NerdGraph API - Manage API keys - Query keys
The text was updated successfully, but these errors were encountered: