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

newrelic_api_access_key data source #2424

Open
Tensho opened this issue Jul 14, 2023 · 1 comment
Open

newrelic_api_access_key data source #2424

Tensho opened this issue Jul 14, 2023 · 1 comment
Labels
enhancement New feature or request group-general

Comments

@Tensho
Copy link
Contributor

Tensho commented Jul 14, 2023

Feature Description

The newrelic_account_management resource creates a brand new account with 2 prepopulated default API keys with names:

  1. License Key for <Account name>
  2. 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
}

Additional context

NerdGraph API - Manage API keys - Query keys

@pranav-new-relic
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request group-general
Projects
None yet
Development

No branches or pull requests

2 participants