Skip to content

Commit

Permalink
ingest type
Browse files Browse the repository at this point in the history
  • Loading branch information
ben851 committed Dec 16, 2024
1 parent 59385cb commit 9bcef4a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions aws/common/newrelic.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ resource "newrelic_cloud_aws_link_account" "newrelic_cloud_integration_push" {
}

resource "newrelic_api_access_key" "newrelic_aws_access_key" {
count = var.enable_new_relic && var.env != "production" ? 1 : 0
account_id = var.new_relic_account_id
key_type = var.env == "staging" ? "USER" : "INGEST"
name = var.env == "staging" ? "notify_tf_provider" : "notify_tf_provider_${var.env}"
notes = "Used by Notify Terraform Code to create New Relic Resources"
count = var.enable_new_relic && var.env != "production" ? 1 : 0
account_id = var.new_relic_account_id
key_type = var.env == "staging" ? "USER" : "INGEST"
ingest_type = var.env == "staging" ? null : "LICENSE"
name = var.env == "staging" ? "notify_tf_provider" : "notify_tf_provider_${var.env}"
notes = "Used by Notify Terraform Code to create New Relic Resources"
}

resource "aws_iam_role" "firehose_newrelic_role" {
Expand Down

0 comments on commit 9bcef4a

Please sign in to comment.