GSA / GSA/grace-alerting

formatting error introduced when upgrading aws provider >=3.11 to <3.12

Open
#13 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
3
Forks
6
PR merge metrics
No merged PRs in 30d

Description

https://github.com/hashicorp/terraform-provider-aws/releases/tag/v3.12.0

```
Error: input_transformer.0.input_paths: input_path must not start with "AWS": AWSRegion

on .terraform/modules/tts_jump_config.alerting/events.tf line 43, in resource "aws_cloudwatch_event_target" "scp_changes":
43: input_paths = {
44: "EventTime" = "$.detail.eventTime"
45: "EventType" = "$.detail-type"
46: "UserID" = "$.detail.userIdentity.arn"
47: "AccountID" = "$.detail.userIdentity.accountId"
48: "SourceIP" = "$.detail.sourceIPAddress"
49: "UserAgent" = "$.detail.userAgent"
50: "EventSource" = "$.detail.eventSource"
51: "AWSRegion" = "$.detail.awsRegion"
52: "EventName" = "$.detail.eventName"
53: "EventParameters" = "$.detail.requestParameters[*]"
54: }

Error: input_transformer.0.input_paths: input_path must not start with "AWS": AWSRegion

on .terraform/modules/tts_jump_config.alerting/events.tf line 115, in resource "aws_cloudwatch_event_target" "s3_bucket_changes":
115: input_paths = {
116: "EventTime" = "$.detail.eventTime"
117: "EventType" = "$.detail-type"
118: "UserID" = "$.detail.userIdentity.arn"
119: "AccountID" = "$.detail.userIdentity.accountId"
120: "SourceIP" = "$.detail.sourceIPAddress"
121: "UserAgent" = "$.detail.userAgent"
122: "EventSource" = "$.detail.eventSource"
123: "AWSRegion" = "$.detail.awsRegion"
124: "EventName" = "$.detail.eventName"
125: "EventParameters" = "$.detail.requestParameters[*]"
126: }

Error: input_transformer.0.input_paths: input_path must not start with "AWS": AWSRegion

on .terraform/modules/tts_jump_config.alerting/events.tf line 171, in resource "aws_cloudwatch_event_target" "config_compliance_changes":
171: input_paths = {
172: "EventTime" = "$.time"
173: "EventType" = "$.detail-type"
174: "AWSRegion" = "$.detail.awsRegion"
175: "AWSAccount" = "$.detail.awsAccountId"
176: "ConfigRuleName" = "$.detail.newEvaluationResult.evaluationResultIdentifier.evaluationResultQualifier.configRuleName"
177: "ResourceType" = "$.detail.newEvaluationResult.evaluationResultIdentifier.evaluationResultQualifier.resourceType"
178: "ResourceID" = "$.detail.newEvaluationResult.evaluationResultIdentifier.evaluationResultQualifier.resourceId"
179: "NewComplianceStatus" = "$.detail.newEvaluationResult.complianceType"
180: "OldComplianceStatus" = "$.detail.oldEvaluationResult.complianceType"
181: }

Error: input_transformer.0.input_paths: input_path must not start with "AWS": AWSAccount

on .terraform/modules/tts_jump_config.alerting/events.tf line 171, in resource "aws_cloudwatch_event_target" "config_compliance_changes":
171: input_paths = {
172: "EventTime" = "$.time"
173: "EventType" = "$.detail-type"
174: "AWSRegion" = "$.detail.awsRegion"
175: "AWSAccount" = "$.detail.awsAccountId"
176: "ConfigRuleName" = "$.detail.newEvaluationResult.evaluationResultIdentifier.evaluationResultQualifier.configRuleName"
177: "ResourceType" = "$.detail.newEvaluationResult.evaluationResultIdentifier.evaluationResultQualifier.resourceType"
178: "ResourceID" = "$.detail.newEvaluationResult.evaluationResultIdentifier.evaluationResultQualifier.resourceId"
179: "NewComplianceStatus" = "$.detail.newEvaluationResult.complianceType"
180: "OldComplianceStatus" = "$.detail.oldEvaluationResult.complianceType"
181: }

Error: input_transformer.0.input_paths: input_path must not start with "AWS": AWSRegion

on .terraform/modules/tts_jump_config.alerting/events.tf line 240, in resource "aws_cloudwatch_event_target" "sns_cloudtrail_configuration_changes":
240: input_paths = {
241: "EventTime" = "$.detail.eventTime"
242: "EventType" = "$.detail-type"
243: "UserID" = "$.detail.userIdentity.arn"
244: "SourceIP" = "$.detail.sourceIPAddress"
245: "UserAgent" = "$.detail.userAgent"
246: "EventSource" = "$.detail.eventSource"
247: "AWSRegion" = "$.detail.awsRegion"
248: "EventName" = "$.detail.eventName"
249: "EventParameters" = "$.detail.requestParameters[*]"
250: }

Error: input_transformer.0.input_paths: input_path must not start with "AWS": AWSRegion

on .terraform/modules/tts_jump_config.alerting/events.tf line 310, in resource "aws_cloudwatch_event_target" "sns_config_configuration_changes":
310: input_paths = {
311: "EventTime" = "$.detail.eventTime"
312: "EventType" = "$.detail-type"
313: "UserID" = "$.detail.userIdentity.arn"
314: "AccountID" = "$.detail.userIdentity.accountId"
315: "SourceIP" = "$.detail.sourceIPAddress"
316: "UserAgent" = "$.detail.userAgent"
317: "EventSource" = "$.detail.eventSource"
318: "AWSRegion" = "$.detail.awsRegion"
319: "EventName" = "$.detail.eventName"
320: "EventParameters" = "$.detail.requestParameters[*]"
321: }

Error: input_transformer.0.input_paths: input_path must not start with "AWS": AWSRegion

on .terraform/modules/tts_jump_config.alerting/events.tf line 414, in resource "aws_cloudwatch_event_target" "sns_iam_configuration_changes":
414: input_paths = {
415: "UserARN" = "$.detail.userIdentity.arn"
416: "EventSource" = "$.detail.eventSource"
417: "AccountID" = "$.detail.userIdentity.accountId"
418: "SourceIP" = "$.detail.sourceIPAddress"
419: "EventType" = "$.detail.eventType"
420: "EventTime" = "$.detail.eventTime"
421: "UserAgent" = "$.detail.userAgent"
422: "AWSRegion" = "$.detail.awsRegion"
423: "EventName" = "$.detail.eventName"
424: "Elements" = "$.detail.requestParameters[*]"
425: }

Error: input_transformer.0.input_paths: input_path must not start with "AWS": AWSRegion

on .terraform/modules/tts_jump_config.alerting/events.tf line 472, in resource "aws_cloudwatch_event_target" "guardduty_findings":
472: input_paths = {
473: "EventTime" = "$.time"
474: "EventType" = "$.detail-type"
475: "EventSource" = "$.source"
476: "AccountID" = "$.account"
477: "AWSRegion" = "$.region"
478: "Severity" = "$.detail.severity"
479: "Title" = "$.detail.title"
480: "Description" = "$.detail.description"
481: "Finding" = "$.detail"
482: }

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.