cds-snc / notification-terraform

Terraform for notification.canada.ca
MIT License
13 stars 6 forks source link

turning off new relic I think #1467

Closed ben851 closed 1 month ago

ben851 commented 1 month ago

Summary | Résumé

Turn off new relic metric streams and pulls while keeping the account linked.

Related Issues | Cartes liées

Test instructions | Instructions pour tester la modification

TF Apply works Verify that we no longer receive metrics in new relic.

Release Instructions | Instructions pour le déploiement

None.

Reviewer checklist | Liste de vérification du réviseur

⚠ If boxes cannot be checked off before merging the PR, they should be moved to the "Release Instructions" section with appropriate steps required to verify before release. For example, changes to celery code may require tests on staging to verify that performance has not been affected.

github-actions[bot] commented 1 month ago

Staging: newrelic

✅   Terraform Init: success ✅   Terraform Validate: success ✅   Terraform Format: success ✅   Terraform Plan: success ⚠️   Warning: resources will be destroyed by this change!

Plan: 0 to add, 0 to change, 2 to destroy
Show summary | CHANGE | NAME | |--------|----------------------------------------------------------------------| | delete | `aws_cloudwatch_metric_stream.newrelic_metric_stream[0]` | | | `newrelic_cloud_aws_integrations.newrelic_cloud_integration_pull[0]` |
Show plan ```terraform Resource actions are indicated with the following symbols: - destroy Terraform will perform the following actions: # aws_cloudwatch_metric_stream.newrelic_metric_stream[0] will be destroyed # (because index [0] is out of range for count) - resource "aws_cloudwatch_metric_stream" "newrelic_metric_stream" { - arn = "arn:aws:cloudwatch:ca-central-1:239043911459:metric-stream/newrelic-metric-stream-staging" -> null - creation_date = "2024-07-24T12:58:21Z" -> null - firehose_arn = "arn:aws:firehose:ca-central-1:239043911459:deliverystream/newrelic_firehose_stream_staging" -> null - id = "newrelic-metric-stream-staging" -> null - include_linked_accounts_metrics = false -> null - last_update_date = "2024-07-24T12:58:21Z" -> null - name = "newrelic-metric-stream-staging" -> null - output_format = "opentelemetry0.7" -> null - role_arn = "arn:aws:iam::239043911459:role/newrelic_metric_stream_to_firehose_role_staging" -> null - state = "running" -> null - tags = {} -> null - tags_all = {} -> null } # newrelic_cloud_aws_integrations.newrelic_cloud_integration_pull[0] will be destroyed # (because index [0] is out of range for count) - resource "newrelic_cloud_aws_integrations" "newrelic_cloud_integration_pull" { - account_id = (sensitive value) -> null - id = "225924" -> null - linked_account_id = 225924 -> null - alb { - aws_regions = [] -> null - fetch_extended_inventory = false -> null - fetch_tags = false -> null - load_balancer_prefixes = [] -> null - metrics_polling_interval = 0 -> null } - api_gateway { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null - stage_prefixes = [] -> null } - auto_scaling { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_app_sync { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_athena { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_cognito { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_connect { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_direct_connect { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_fsx { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_glue { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_kinesis_analytics { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_media_convert { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_media_package_vod { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_mq { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_msk { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_neptune { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_qldb { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_route53resolver { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_states { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_transit_gateway { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_waf { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - aws_wafv2 { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - billing { - metrics_polling_interval = 0 -> null } - cloudfront { - fetch_lambdas_at_edge = false -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - cloudtrail { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - doc_db { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - dynamodb { - aws_regions = [] -> null - fetch_extended_inventory = false -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - ebs { - aws_regions = [] -> null - fetch_extended_inventory = false -> null - metrics_polling_interval = 0 -> null } - ec2 { - aws_regions = [] -> null - duplicate_ec2_tags = false -> null - fetch_ip_addresses = false -> null - metrics_polling_interval = 0 -> null } - ecs { - aws_regions = [] -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - efs { - aws_regions = [] -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - elasticache { - aws_regions = [] -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - elasticbeanstalk { - aws_regions = [] -> null - fetch_extended_inventory = false -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - elasticsearch { - aws_regions = [] -> null - fetch_nodes = false -> null - metrics_polling_interval = 0 -> null } - elb { - aws_regions = [] -> null - fetch_extended_inventory = false -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - emr { - aws_regions = [] -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - health { - metrics_polling_interval = 0 -> null } - iam { - metrics_polling_interval = 0 -> null } - iot { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - kinesis { - aws_regions = [] -> null - fetch_shards = false -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - kinesis_firehose { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - lambda { - aws_regions = [] -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - rds { - aws_regions = [] -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - redshift { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - route53 { - fetch_extended_inventory = false -> null - metrics_polling_interval = 0 -> null } - s3 { - fetch_extended_inventory = false -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null } - ses { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } - sns { - aws_regions = [] -> null - fetch_extended_inventory = false -> null - metrics_polling_interval = 0 -> null } - sqs { - aws_regions = [] -> null - fetch_extended_inventory = false -> null - fetch_tags = false -> null - metrics_polling_interval = 0 -> null - queue_prefixes = [] -> null } - trusted_advisor { - metrics_polling_interval = 0 -> null } - vpc { - aws_regions = [] -> null - fetch_nat_gateway = false -> null - fetch_vpn = false -> null - metrics_polling_interval = 0 -> null } - x_ray { - aws_regions = [] -> null - metrics_polling_interval = 0 -> null } } Plan: 0 to add, 0 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: plan.tfplan To perform exactly these actions, run the following command to apply: terraform apply "plan.tfplan" ```