Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yuklia/bd52005f1c679122c10278e5c85c1155 to your computer and use it in GitHub Desktop.
Save yuklia/bd52005f1c679122c10278e5c85c1155 to your computer and use it in GitHub Desktop.
2022-10-25T15:30:06.682+0200 [INFO] backend/local: apply calling Apply
2022-10-25T15:30:06.682+0200 [DEBUG] Building and walking apply graph for NormalMode plan
2022-10-25T15:30:06.683+0200 [DEBUG] Resource state not found for node "module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type", instance module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type
2022-10-25T15:30:06.683+0200 [DEBUG] Resource state not found for node "module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts[\"heathy_hosts_in_target_group\"]", instance module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts["heathy_hosts_in_target_group"]
2022-10-25T15:30:06.683+0200 [DEBUG] ProviderTransformer: "module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts[\"heathy_hosts_in_target_group\"]" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/newrelic/newrelic"]
2022-10-25T15:30:06.683+0200 [DEBUG] ProviderTransformer: "module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/newrelic/newrelic"]
2022-10-25T15:30:06.683+0200 [DEBUG] ProviderTransformer: "module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/newrelic/newrelic"]
2022-10-25T15:30:06.684+0200 [DEBUG] ProviderTransformer: "module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/newrelic/newrelic"]
2022-10-25T15:30:06.684+0200 [DEBUG] pruning unused provider["registry.terraform.io/hashicorp/aws"]
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.local.filtered_map (expand)" references: [module.alerts.module.production_conditions.var.settings (expand) module.alerts.module.production_conditions.var.environment_type (expand) module.alerts.module.production_conditions.var.environment_type (expand) module.alerts.module.production_conditions.var.environment_type (expand)]
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.jenkins_cpu_usage (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.rabbitmq_memory_alarm (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "var.environment" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "var.bypass" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.rabbitmq_processing_speed (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.output.debug_info (expand)" references: [module.alerts.var.is_infrastructure (expand) module.alerts.var.is_apm (expand) module.alerts.var.is_infrastructure_customer (expand) module.alerts.var.is_infrastructure_internal (expand)]
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.local.settings (expand)" references: [module.alerts.module.settings.output.heathy_hosts_in_target_group (expand) module.alerts.module.settings (close) module.alerts.module.settings.output.elasticsearch_cluster_status_red (expand)]
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.rabbitmq_memory (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.module.policies (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "output.alerts_settings (expand)" references: [var.debug module.alerts.output.alerts_settings (expand)]
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.var.environment_type (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.jenkins_inode_usage (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.ec2_cpucredit_balance (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.elasticsearch_status_red (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.module.policies.var.environment_type (expand)" references: [module.alerts.module.production_conditions.var.environment_type (expand)]
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.healthchecks (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "var.debug" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.redis_cache_hit_rate (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions (close)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "var.environment_type" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.var.settings (expand)" references: [module.alerts.local.settings (expand)]
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.var.is_apm (expand)" references: [var.environment_type var.bypass]
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.output.alerts_settings (expand)" references: [module.alerts.local.settings (expand)]
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.redis_status (expand)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.aurora_cpu_usage (expand)" references: []
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [INFO] ReferenceTransformer: reference not found: "each.value"
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts[\"heathy_hosts_in_target_group\"]" references: [module.alerts.module.production_conditions.local.filtered_map (expand) module.alerts.module.production_conditions.module.policies.output.policy (expand)]
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy (close)" references: []
2022-10-25T15:30:06.685+0200 [DEBUG] ReferenceTransformer: "var.newrelic_account_id" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings.output.heathy_hosts_in_target_group (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.jenkins_memory_usage (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.redis_out_of_space (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.db_io_burst (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.jenkins_no_jobs_completed (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts (close)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.module.policies.var.incident_preference (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.var.is_infrastructure_customer (expand)" references: [var.environment var.environment_type var.bypass]
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.module.policies.output.policy (expand)" references: [module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type (expand) module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type]
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.jenkins_failed_jobs (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings (close)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts (expand)" references: [module.alerts.module.production_conditions.local.filtered_map (expand)]
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings.output.elasticsearch_cluster_status_red (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.alb_5xx_codes (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.rabbitmq_disk_alarm (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.var.is_infrastructure (expand)" references: [var.environment_type var.bypass]
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.jenkins_disk_usage (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.rabbitmq_error_queue_grow (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.rabbitmq_availability (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.module.policies (close)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "var.newrelic_api_key" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.var.is_infrastructure_internal (expand)" references: [var.environment var.environment_type var.bypass]
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.jenkins_dataimport_execution_time (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.ec2_statusfailed_red (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.db_connections (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.healthchecks_ping (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.settings_legacy.output.rabbitmq_disk_space (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions (expand)" references: []
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "output.debug (expand)" references: [var.debug module.alerts.output.debug_info (expand)]
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type" references: [module.alerts.module.production_conditions.module.policies.var.environment_type (expand) module.alerts.module.production_conditions.module.policies.var.incident_preference (expand)]
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/newrelic/newrelic\"]" references: [var.newrelic_api_key var.newrelic_account_id]
2022-10-25T15:30:06.686+0200 [DEBUG] ReferenceTransformer: "module.alerts (expand)" references: []
2022-10-25T15:30:06.687+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.alb_5xx_codes (expand) is no longer needed, removing
2022-10-25T15:30:06.687+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.rabbitmq_disk_alarm (expand) is no longer needed, removing
2022-10-25T15:30:06.687+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.jenkins_disk_usage (expand) is no longer needed, removing
2022-10-25T15:30:06.687+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.rabbitmq_error_queue_grow (expand) is no longer needed, removing
2022-10-25T15:30:06.687+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.jenkins_dataimport_execution_time (expand) is no longer needed, removing
2022-10-25T15:30:06.687+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.rabbitmq_availability (expand) is no longer needed, removing
2022-10-25T15:30:06.687+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.ec2_statusfailed_red (expand) is no longer needed, removing
2022-10-25T15:30:06.687+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.db_connections (expand) is no longer needed, removing
2022-10-25T15:30:06.687+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.healthchecks_ping (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.rabbitmq_disk_space (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.jenkins_cpu_usage (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.rabbitmq_memory_alarm (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.rabbitmq_processing_speed (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.rabbitmq_memory (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.jenkins_inode_usage (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.ec2_cpucredit_balance (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.elasticsearch_status_red (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.healthchecks (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.redis_cache_hit_rate (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.jenkins_no_jobs_completed (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.db_io_burst (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.jenkins_failed_jobs (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.aurora_cpu_usage (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.redis_status (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.redis_out_of_space (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy.output.jenkins_memory_usage (expand) is no longer needed, removing
2022-10-25T15:30:06.688+0200 [DEBUG] pruneUnusedNodes: module.alerts.module.settings_legacy (expand) is no longer needed, removing
2022-10-25T15:30:06.689+0200 [DEBUG] Starting graph walk: walkApply
2022-10-25T15:30:06.690+0200 [DEBUG] created provider logger: level=debug
2022-10-25T15:30:06.690+0200 [INFO] provider: configuring client automatic mTLS
2022-10-25T15:30:06.699+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/newrelic/newrelic/3.5.2/darwin_amd64/terraform-provider-newrelic_v3.5.2 args=[.terraform/providers/registry.terraform.io/newrelic/newrelic/3.5.2/darwin_amd64/terraform-provider-newrelic_v3.5.2]
2022-10-25T15:30:06.703+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/newrelic/newrelic/3.5.2/darwin_amd64/terraform-provider-newrelic_v3.5.2 pid=45942
2022-10-25T15:30:06.705+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/newrelic/newrelic/3.5.2/darwin_amd64/terraform-provider-newrelic_v3.5.2
2022-10-25T15:30:06.714+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: configuring server automatic mTLS: timestamp=2022-10-25T15:30:06.713+0200
2022-10-25T15:30:06.735+0200 [DEBUG] provider: using plugin: version=5
2022-10-25T15:30:06.735+0200 [DEBUG] provider.terraform-provider-newrelic_v3.5.2: plugin address: network=unix address=/var/folders/td/6brd4cs94x1frlzh426s4vjm0000gq/T/plugin2914970349 timestamp=2022-10-25T15:30:06.735+0200
2022-10-25T15:30:06.772+0200 [WARN] ValidateProviderConfig from "provider[\"registry.terraform.io/newrelic/newrelic\"]" changed the config value, but that value is unused
2022-10-25T15:30:06.773+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: 2022/10/25 15:30:06 [INFO] UserAgent: HashiCorp Terraform/1.3.3 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-newrelic/3.5.2: timestamp=2022-10-25T15:30:06.773+0200
2022-10-25T15:30:06.774+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: 2022/10/25 15:30:06 [INFO] Initializing newrelic-client-go: timestamp=2022-10-25T15:30:06.773+0200
2022-10-25T15:30:06.774+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: 2022/10/25 15:30:06 [INFO] New Relic client configured: timestamp=2022-10-25T15:30:06.774+0200
2022-10-25T15:30:06.774+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: 2022/10/25 15:30:06 [INFO] New Relic Insights insert client configured: timestamp=2022-10-25T15:30:06.774+0200
module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type: Creating...
2022-10-25T15:30:06.775+0200 [INFO] Starting apply for module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type
2022-10-25T15:30:06.776+0200 [DEBUG] module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type: applying the planned Create change
2022-10-25T15:30:06.776+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: 2022/10/25 15:30:06 [INFO] Adding Account ID to X-Account-ID context 3255463: timestamp=2022-10-25T15:30:06.776+0200
2022-10-25T15:30:06.776+0200 [WARN] unexpected data: registry.terraform.io/newrelic/newrelic:stderr="time="2022-10-25T15:30:06+02:00" level=debug msg="performing request" method=POST url="https://api.newrelic.com/graphql""
2022-10-25T15:30:06.776+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: 2022/10/25 15:30:06 [DEBUG] newrelic API Request Details:
---[ REQUEST ]---------------------------------------
POST /graphql HTTP/1.1
Host: api.newrelic.com
User-Agent: HashiCorp Terraform/1.3.3 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-newrelic/3.5.2
Content-Length: 393
Api-Key: REDACTED
Content-Type: application/json
Newrelic-Requesting-Services: terraform-provider-newrelic|newrelic-client-go
Accept-Encoding: gzip
{
"query": "mutation CreatePolicy($accountID: Int!, $policy: AlertsPolicyInput!){\n\t\talertsPolicyCreate(accountId: $accountID, policy: $policy) {\n\t\t\t\t\t\tid\n\t\t\t\t\t\tname\n\t\t\t\t\t\tincidentPreference\n\t\t\t\t\t\taccountId\n\t\n\t\t} }",
"variables": {
"accountID": REDACTED,
"policy": {
"incidentPreference": "PER_CONDITION_AND_TARGET",
"name": "alerts_conditions_production_environments"
}
}
}
-----------------------------------------------------: timestamp=2022-10-25T15:30:06.776+0200
2022-10-25T15:30:07.909+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: 2022/10/25 15:30:07 [DEBUG] newrelic API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: max-age=0, private, must-revalidate
Content-Security-Policy: frame-ancestors *.newrelic.com
Content-Type: application/json; charset=utf-8
Date: Tue, 25 Oct 2022 13:30:07 GMT
Proxied-By: Service Gateway
Served-By: nerd-graph
Server: Cowboy
Strict-Transport-Security: max-age=31536000; includeSubDomains
a7
{
"data": {
"alertsPolicyCreate": {
"accountId": REDACTED,
"id": "3668990",
"incidentPreference": "PER_CONDITION_AND_TARGET",
"name": "alerts_conditions_production_environments"
}
}
}
0
-----------------------------------------------------: timestamp=2022-10-25T15:30:07.909+0200
module.alerts.module.production_conditions.module.policies.newrelic_alert_policy.group_by_environments_type: Creation complete after 1s [id=3668990]
module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts["heathy_hosts_in_target_group"]: Creating...
2022-10-25T15:30:07.916+0200 [INFO] Starting apply for module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts["heathy_hosts_in_target_group"]
2022-10-25T15:30:07.917+0200 [DEBUG] module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts["heathy_hosts_in_target_group"]: applying the planned Create change
2022-10-25T15:30:07.918+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: 2022/10/25 15:30:07 [INFO] Creating New Relic NRQL alert condition P1 No Healthy Hosts in Target Group via NerdGraph API: timestamp=2022-10-25T15:30:07.918+0200
2022-10-25T15:30:07.919+0200 [WARN] unexpected data: registry.terraform.io/newrelic/newrelic:stderr="time="2022-10-25T15:30:07+02:00" level=debug msg="performing request" method=POST url="https://api.newrelic.com/graphql""
2022-10-25T15:30:07.919+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: 2022/10/25 15:30:07 [DEBUG] newrelic API Request Details:
---[ REQUEST ]---------------------------------------
POST /graphql HTTP/1.1
Host: api.newrelic.com
User-Agent: HashiCorp Terraform/1.3.3 (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-newrelic/3.5.2
Content-Length: 1707
Api-Key: REDACTED
Content-Type: application/json
Newrelic-Requesting-Services: terraform-provider-newrelic|newrelic-client-go
Accept-Encoding: gzip
{
"query": "\n\t\tmutation($accountId: Int!, $policyId: ID!, $condition: AlertsNrqlConditionStaticInput!) {\n\t\t\talertsNrqlConditionStaticCreate(accountId: $accountId, policyId: $policyId, condition: $condition) {\n\t\t\t\tvalueFunction\n id\n name\n nrql {\n evaluationOffset\n query\n }\n enabled\n entityGuid\n description\n policyId\n runbookUrl\n terms {\n operator\n priority\n threshold\n thresholdDuration\n thresholdOccurrences\n }\n type\n\tviolationTimeLimit\n\tviolationTimeLimitSeconds\n expiration {\n closeViolationsOnExpiration\n expirationDuration\n openViolationOnExpiration\n }\n signal {\n\t aggregationWindow\n evaluationOffset\n fillOption\n fillValue\n aggregationMethod\n aggregationDelay\n aggregationTimer\n slideBy\n }\n } }",
"variables": {
"accountId": REDACTED,
"condition": {
"description": "P1 No Healthy Hosts in Target Group",
"enabled": true,
"name": "P1 No Healthy Hosts in Target Group",
"nrql": {
"query": "SELECT min(provider.healthyHostCount.Minimum) - max(provider.unHealthyHostCount.Maximum) FROM LoadBalancerSample WHERE provider in ('AlbTargetGroup','NlbTargetGroup') AND label.details like '%-pr%' FACET label.details"
},
"terms": [
{
"operator": "BELOW_OR_EQUALS",
"priority": "CRITICAL",
"threshold": 0,
"thresholdDuration": 600,
"thresholdOccurrences": "ALL"
}
],
"violationTimeLimitSeconds": 28800,
"expiration": {
"expirationDuration": null,
"closeViolationsOnExpiration": false,
"openViolationOnExpiration": false
},
"signal": {
"aggregationWindow": 60,
"fillOption": null,
"fillValue": null,
"aggregationMethod": "EVENT_FLOW",
"aggregationDelay": 120
}
},
"policyId": "REDACTED"
}
}
-----------------------------------------------------: timestamp=2022-10-25T15:30:07.919+0200
2022-10-25T15:30:08.507+0200 [INFO] provider.terraform-provider-newrelic_v3.5.2: 2022/10/25 15:30:08 [DEBUG] newrelic API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: max-age=0, private, must-revalidate
Content-Security-Policy: frame-ancestors *.newrelic.com
Content-Type: application/json; charset=utf-8
Date: Tue, 25 Oct 2022 13:30:07 GMT
Proxied-By: Service Gateway
Served-By: nerd-graph
Server: Cowboy
Strict-Transport-Security: max-age=31536000; includeSubDomains
{
"data": {
"alertsNrqlConditionStaticCreate": null
},
"errors": [
{
"extensions": {
"code": "BAD_USER_INPUT",
"errorClass": "BAD_USER_INPUT"
},
"locations": [
{
"column": 4,
"line": 3
}
],
"message": "Policy with ID 3668990 not found",
"path": [
"alertsNrqlConditionStaticCreate"
]
}
]
}
0
-----------------------------------------------------: timestamp=2022-10-25T15:30:08.506+0200
2022-10-25T15:30:08.507+0200 [ERROR] provider.terraform-provider-newrelic_v3.5.2: Response contains error diagnostic: @caller=/home/runner/go/pkg/mod/github.com/hashicorp/terraform-plugin-go@v0.12.0/tfprotov5/internal/diag/diagnostics.go:56 diagnostic_summary="Policy with ID 3668990 not found: BAD_USER_INPUT" tf_resource_type=newrelic_nrql_alert_condition tf_rpc=ApplyResourceChange tf_provider_addr=provider tf_req_id=9a07c1c9-3eb8-67f7-4c0e-adcfe1f40887 @module=sdk.proto diagnostic_detail= diagnostic_severity=ERROR tf_proto_version=5.3 timestamp=2022-10-25T15:30:08.507+0200
2022-10-25T15:30:08.509+0200 [ERROR] vertex "module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts[\"heathy_hosts_in_target_group\"]" error: Policy with ID 3668990 not found: BAD_USER_INPUT
2022-10-25T15:30:08.510+0200 [DEBUG] Uploading remote state to S3: {
Body: buffer(0xc0028a0d50),
Bucket: "yuklia",
ContentLength: 4923,
ContentType: "application/json",
Key: "yuklia.tfstate"
}
2022-10-25T15:30:08.511+0200 [DEBUG] [aws-sdk-go] DEBUG: Request s3/PutObject Details:
---[ REQUEST POST-SIGN ]-----------------------------
PUT /yuklia.tfstate HTTP/1.1
Host: yuklia.s3.eu-central-1.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.3 aws-sdk-go/1.42.35 (go1.19.1; darwin; amd64)
Content-Length: 4923
Authorization: REDACTED
Content-Md5: 4Qad/HNPL7k39Vwedh4yYA==
Content-Type: application/json
X-Amz-Content-Sha256: 733e7a99266693ac12a9ac246058b4475871dca682f6c748e3037d48bd8f673a
X-Amz-Date: 20221025T133008Z
X-Amz-Security-Token: REDACTED
Accept-Encoding: gzip
{
"version": 4,
"terraform_version": "1.3.3",
"serial": 67,
"lineage": "797b726a-c409-d8eb-ed61-f32d49b3e3a6",
"outputs": {
"alerts_settings": {
"value": {
"elasticsearch_cluster_status_red": {
"internal": {},
"non-production": {
"aggregation_window": 60,
"critical": {
"operator": "above",
"threshold": 1,
"threshold_duration": 900
},
"description": "P1 Elasticsearch Cluster Status RED",
"enabled": true,
"name": "P1 Elasticsearch Cluster Status RED",
"query": "SELECT average(aws.es.ClusterStatus.red) FROM Metric WHERE tags.Name not like '%-pr%' FACET tags.Name",
"warning": {
"operator": "above",
"threshold": 1,
"threshold_duration": 600
}
},
"production": {}
},
"heathy_hosts_in_target_group": {
"internal": {},
"non-production": {},
"production": {
"aggregation_window": 60,
"critical": {
"operator": "below_or_equals",
"threshold": 0,
"threshold_duration": 600
},
"description": "P1 No Healthy Hosts in Target Group",
"enabled": true,
"name": "P1 No Healthy Hosts in Target Group",
"query": "SELECT min(provider.healthyHostCount.Minimum) - max(provider.unHealthyHostCount.Maximum) FROM LoadBalancerSample WHERE provider in ('AlbTargetGroup','NlbTargetGroup') AND label.details like '%-pr%' FACET label.details"
}
}
},
"type": [
"object",
{
"elasticsearch_cluster_status_red": [
"object",
{
"internal": [
"object",
{}
],
"non-production": [
"object",
{
"aggregation_window": "number",
"critical": [
"object",
{
"operator": "string",
"threshold": "number",
"threshold_duration": "number"
}
],
"description": "string",
"enabled": "bool",
"name": "string",
"query": "string",
"warning": [
"object",
{
"operator": "string",
"threshold": "number",
"threshold_duration": "number"
}
]
}
],
"production": [
"object",
{}
]
}
],
"heathy_hosts_in_target_group": [
"object",
{
"internal": [
"object",
{}
],
"non-production": [
"object",
{}
],
"production": [
"object",
{
"aggregation_window": "number",
"critical": [
"object",
{
"operator": "string",
"threshold": "number",
"threshold_duration": "number"
}
],
"description": "string",
"enabled": "bool",
"name": "string",
"query": "string"
}
]
}
]
}
]
},
"debug": {
"value": {
"is_apm": false,
"is_infrastructure": true,
"is_infrastructure_customer": false,
"is_infrastructure_internal": true
},
"type": [
"object",
{
"is_apm": "bool",
"is_infrastructure": "bool",
"is_infrastructure_customer": "bool",
"is_infrastructure_internal": "bool"
}
]
}
},
"resources": [
{
"module": "module.alerts.module.production_conditions.module.policies",
"mode": "managed",
"type": "newrelic_alert_policy",
"name": "group_by_environments_type",
"provider": "provider[\"registry.terraform.io/newrelic/newrelic\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"account_id": 3255463,
"channel_ids": null,
"id": "3668990",
"incident_preference": "PER_CONDITION_AND_TARGET",
"name": "alerts_conditions_production_environments"
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
}
],
"check_results": []
}
-----------------------------------------------------
2022-10-25T15:30:08.624+0200 [DEBUG] [aws-sdk-go] DEBUG: Response s3/PutObject Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 0
Date: Tue, 25 Oct 2022 13:30:09 GMT
Etag: "e1069dfc734f2fb937f55c1e761e3260"
Server: AmazonS3
X-Amz-Id-2: zizEMeAlgntTYjhn7XMTAMGzzfyK1JYlHtyT6ZqJ6klEacTvAn8QHSjFT0YHxd1W5i7zcfuAXyA=
X-Amz-Request-Id: 2B8PV7XE8E3GK5HA
-----------------------------------------------------
2022-10-25T15:30:08.624+0200 [DEBUG] [aws-sdk-go]
2022-10-25T15:30:08.625+0200 [DEBUG] [aws-sdk-go] DEBUG: Request dynamodb/PutItem Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: dynamodb.eu-central-1.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.3 aws-sdk-go/1.42.35 (go1.19.1; darwin; amd64)
Content-Length: 140
Accept-Encoding: identity
Authorization: AWS4-HMAC-SHA256 Credential=ASIAT2N4U4XVROGIQ2VX/20221025/eu-central-1/dynamodb/aws4_request, SignedHeaders=accept-encoding;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=25fb9500992a048558e9cf066e53d097fd778d0d41e8b9e2a91f968561db7c44
Content-Type: application/x-amz-json-1.0
X-Amz-Date: 20221025T133008Z
X-Amz-Security-Token: REDACTED
X-Amz-Target: DynamoDB_20120810.PutItem
{"Item":{"Digest":{"S":"e1069dfc734f2fb937f55c1e761e3260"},"LockID":{"S":"yuklia/yuklia.tfstate-md5"}},"TableName":"observability-tfstates"}
-----------------------------------------------------
2022-10-25T15:30:08.823+0200 [DEBUG] [aws-sdk-go] DEBUG: Response dynamodb/PutItem Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 2
Content-Type: application/x-amz-json-1.0
Date: Tue, 25 Oct 2022 13:30:09 GMT
Server: Server
X-Amz-Crc32: 2745614147
X-Amzn-Requestid: OGRJ12P8CLEF8ITL7M2MDEIFQNVV4KQNSO5AEMVJF66Q9ASUAAJG
-----------------------------------------------------
2022-10-25T15:30:08.823+0200 [DEBUG] [aws-sdk-go] {}
│ Error: Policy with ID 3668990 not found: BAD_USER_INPUT
│ with module.alerts.module.production_conditions.newrelic_nrql_alert_condition.alerts["heathy_hosts_in_target_group"],
│ on alerts/conditions/main.tf line 15, in resource "newrelic_nrql_alert_condition" "alerts":
│ 15: resource "newrelic_nrql_alert_condition" "alerts" {
2022-10-25T15:30:08.829+0200 [DEBUG] [aws-sdk-go] DEBUG: Request dynamodb/GetItem Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: dynamodb.eu-central-1.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.3 aws-sdk-go/1.42.35 (go1.19.1; darwin; amd64)
Content-Length: 145
Accept-Encoding: identity
Authorization: AWS4-HMAC-SHA256 Credential=ASIAT2N4U4XVROGIQ2VX/20221025/eu-central-1/dynamodb/aws4_request, SignedHeaders=accept-encoding;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=9b5272035c505821b3c01a65356966e45266e3650d8c00bd2e5e8c58c3bd3134
Content-Type: application/x-amz-json-1.0
X-Amz-Date: 20221025T133008Z
X-Amz-Security-Token: REDACTED
X-Amz-Target: DynamoDB_20120810.GetItem
{"ConsistentRead":true,"Key":{"LockID":{"S":"yuklia/yuklia.tfstate"}},"ProjectionExpression":"LockID, Info","TableName":"observability-tfstates"}
-----------------------------------------------------
2022-10-25T15:30:08.912+0200 [DEBUG] [aws-sdk-go] DEBUG: Response dynamodb/GetItem Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 314
Content-Type: application/x-amz-json-1.0
Date: Tue, 25 Oct 2022 13:30:08 GMT
Server: Server
X-Amz-Crc32: 551959719
X-Amzn-Requestid: C8PTE79DNAS7PIQF1U8RPVTEPJVV4KQNSO5AEMVJF66Q9ASUAAJG
-----------------------------------------------------
2022-10-25T15:30:08.912+0200 [DEBUG] [aws-sdk-go] {"Item":{"LockID":{"S":"yuklia/yuklia.tfstate"},"Info":{"S":"{\"ID\":\"0a00ef3a-b594-979d-3599-710dc739fae3\",\"Operation\":\"OperationTypeApply\",\"Info\":\"\",\"Who\":\"yuklia@Admins-MacBook-Pro.fritz.box\",\"Version\":\"1.3.3\",\"Created\":\"2022-10-25T13:30:03.654098Z\",\"Path\":\"yuklia/yuklia.tfstate\"}"}}}
2022-10-25T15:30:08.912+0200 [DEBUG] [aws-sdk-go] DEBUG: Request dynamodb/DeleteItem Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: dynamodb.eu-central-1.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.3.3 aws-sdk-go/1.42.35 (go1.19.1; darwin; amd64)
Content-Length: 85
Accept-Encoding: identity
Authorization: AWS4-HMAC-SHA256 Credential=ASIAT2N4U4XVROGIQ2VX/20221025/eu-central-1/dynamodb/aws4_request, SignedHeaders=accept-encoding;content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=3aba0aa7e0a02048cfcc97a5f084841b7dd1953eab8f87032a0abbd7db9b3c31
Content-Type: application/x-amz-json-1.0
X-Amz-Date: 20221025T133008Z
X-Amz-Security-Token: REDACTED
X-Amz-Target: DynamoDB_20120810.DeleteItem
{"Key":{"LockID":{"S":"yuklia/yuklia.tfstate"}},"TableName":"observability-tfstates"}
-----------------------------------------------------
2022-10-25T15:30:09.009+0200 [DEBUG] [aws-sdk-go] DEBUG: Response dynamodb/DeleteItem Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
Connection: close
Content-Length: 2
Content-Type: application/x-amz-json-1.0
Date: Tue, 25 Oct 2022 13:30:09 GMT
Server: Server
X-Amz-Crc32: 2745614147
X-Amzn-Requestid: NVOUGDK4KR4C7TKLUIKL6TSOR3VV4KQNSO5AEMVJF66Q9ASUAAJG
-----------------------------------------------------
2022-10-25T15:30:09.010+0200 [DEBUG] [aws-sdk-go] {}
2022-10-25T15:30:09.011+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2022-10-25T15:30:09.013+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/newrelic/newrelic/3.5.2/darwin_amd64/terraform-provider-newrelic_v3.5.2 pid=45942
2022-10-25T15:30:09.013+0200 [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment