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

Gov integration #2802

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Added condition support for US GOV cloud"
This reverts commit 37817df.
  • Loading branch information
vmankonda committed Jan 30, 2025
commit 105f034d4f5b9c4c85ddf71fb97db61748d99f6e
4 changes: 2 additions & 2 deletions examples/modules/cloud-integrations/aws/main.tf
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ data "aws_iam_policy_document" "newrelic_assume_policy" {
principals {
type = "AWS"
// This is the unique identifier for New Relic account on AWS, there is no need to change this
identifiers = var.newrelic_account_region == "US_GOV" ? [266471868085] : [754728514883]
identifiers = [754728514883]
}

condition {
@@ -125,7 +125,7 @@ resource "aws_kinesis_firehose_delivery_stream" "newrelic_firehose_stream" {
name = "newrelic_firehose_stream_${var.name}"
destination = "http_endpoint"
http_endpoint_configuration {
url = var.newrelic_account_region == "US_GOV" ? "https://gov-aws-api.newrelic.com/cloudwatch-metrics/v1" : (var.newrelic_account_region == "US" ? "https://aws-api.newrelic.com/cloudwatch-metrics/v1" : "https://aws-api.eu01.nr-data.net/cloudwatch-metrics/v1)"
url = var.newrelic_account_region == "US" ? "https://aws-api.newrelic.com/cloudwatch-metrics/v1" : "https://aws-api.eu01.nr-data.net/cloudwatch-metrics/v1"
name = "New Relic ${var.name}"
access_key = newrelic_api_access_key.newrelic_aws_access_key.key
buffering_size = 1
2 changes: 1 addition & 1 deletion examples/modules/cloud-integrations/aws/variables.tf
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ variable "newrelic_account_region" {
default = "US"

validation {
condition = contains(["US", "EU", "US_GOV"], var.newrelic_account_region)
condition = contains(["US", "EU"], var.newrelic_account_region)
error_message = "Valid values for region are 'US' or 'EU'."
}
}