Skip to content

Commit

Permalink
Putting new relic integration into staging (#1450)
Browse files Browse the repository at this point in the history
* Putting new relic integration into staging

* adding version

* Fixing the plan workflow for newrelic

* testing newrelic

* formatting

* trying to resolve changes

* formatting

* formatting

* Removing destination noame

* removing type
  • Loading branch information
ben851 authored Jul 23, 2024
1 parent 2c7e090 commit cf6ab2a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terragrunt_plan_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
lambda-google-cidr: ${{ steps.filter.outputs.lambda-google-cidr }}
system_status: ${{ steps.filter.outputs.system_status }}
system_status_static_site: ${{ steps.filter.outputs.system_status_static_site }}
new_relic: ${{ steps.filter.outputs.newrelic }}
newrelic: ${{ steps.filter.outputs.newrelic }}

steps:

Expand Down
8 changes: 8 additions & 0 deletions aws/newrelic/aws_integration.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module "newrelic-aws-cloud-integrations" {
count = var.env == "staging" ? 1 : 0
source = "github.com/newrelic/terraform-provider-newrelic//examples/modules/cloud-integrations/aws"

newrelic_account_id = var.new_relic_account_id
newrelic_account_region = "US"
name = var.env
}
8 changes: 6 additions & 2 deletions aws/newrelic/notifications.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ resource "newrelic_workflow" "terraform_notify_workflow" {


destination {
channel_id = newrelic_notification_channel.terraform_notify_channel.id
notification_triggers = []
channel_id = newrelic_notification_channel.terraform_notify_channel.id
notification_triggers = [
"ACKNOWLEDGED",
"ACTIVATED",
"CLOSED"
]
}

issues_filter {
Expand Down

0 comments on commit cf6ab2a

Please sign in to comment.