You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This code, initially, sets up a different channel for Sprinkler. More importantly, however, is the change to cdpt_chaps_cloudwatch where the code has been amended to replace agerduty_service_integration with pagerduty_event_orchestration. This is to ensure that changes due to happen early next year will not impact us. We are currently testing this to make sure it has no impact on our services.
The code was also amended to put the low priority alarms code in place. Again this has been amended to fix an issue with the value.
The initial code has been left, commented out, so that we can reinstate if required.
Trivy will check the following folders:
terraform/pagerduty
Running Trivy in terraform/pagerduty
2024-09-19T13:47:25Z INFO [db] Need to update DB
2024-09-19T13:47:25Z INFO [db] Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-09-19T13:47:27Z INFO [vuln] Vulnerability scanning is enabled
2024-09-19T13:47:27Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-19T13:47:27Z INFO Need to update the built-in policies
2024-09-19T13:47:27Z INFO Downloading the built-in policies...
74.86 KiB / 74.86 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-09-19T13:47:27Z INFO [secret] Secret scanning is enabled
2024-09-19T13:47:27Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-19T13:47:27Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection
2024-09-19T13:47:28Z INFO [terraform scanner] Scanning root module file_path="."
2024-09-19T13:47:28Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="pagerduty_token, pagerduty_user_token"
2024-09-19T13:47:28Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="pagerduty_team_membership.modernisation_platform_membership" value="cty.NilVal"
2024-09-19T13:47:28Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:5-16"
2024-09-19T13:47:28Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:101-110"
2024-09-19T13:47:28Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:115-124"
2024-09-19T13:47:28Z INFO Number of language-specific files num=0
2024-09-19T13:47:28Z INFO Detected config files num=3
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/pagerduty
*****************************
Running Checkov in terraform/pagerduty
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
terraform scan results:
Passed checks: 28, Failed checks: 0, Skipped checks: 10
checkov_exitcode=0
CTFLint Scan Success
Show Output
*****************************
Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version:0.9.1)
tflint will check the following folders:
terraform/pagerduty
*****************************
Running tflint in terraform/pagerduty
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=0
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/pagerduty
*****************************
Running Trivy in terraform/pagerduty
2024-09-19T13:47:25Z INFO [db] Need to update DB
2024-09-19T13:47:25Z INFO [db] Downloading DB...repository="ghcr.io/aquasecurity/trivy-db:2"2024-09-19T13:47:27Z INFO [vuln] Vulnerability scanning is enabled
2024-09-19T13:47:27Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-19T13:47:27Z INFO Need to update the built-in policies
2024-09-19T13:47:27Z INFO Downloading the built-in policies...74.86 KiB /74.86 KiB [-----------------------------------------------------------] 100.00%? p/s 0s2024-09-19T13:47:27Z INFO [secret] Secret scanning is enabled
2024-09-19T13:47:27Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-19T13:47:27Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection2024-09-19T13:47:28Z INFO [terraformscanner] Scanning root module file_path="."2024-09-19T13:47:28Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="pagerduty_token, pagerduty_user_token"2024-09-19T13:47:28Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="pagerduty_team_membership.modernisation_platform_membership"value="cty.NilVal"2024-09-19T13:47:28Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:5-16"2024-09-19T13:47:28Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:101-110"2024-09-19T13:47:28Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:115-124"2024-09-19T13:47:28Z INFO Number of language-specific files num=02024-09-19T13:47:28Z INFO Detected config files num=3trivy_exitcode=0
Trivy will check the following folders:
terraform/pagerduty
Running Trivy in terraform/pagerduty
2024-09-19T16:10:37Z INFO [db] Need to update DB
2024-09-19T16:10:37Z INFO [db] Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-09-19T16:10:39Z INFO [vuln] Vulnerability scanning is enabled
2024-09-19T16:10:39Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-19T16:10:39Z INFO Need to update the built-in policies
2024-09-19T16:10:39Z INFO Downloading the built-in policies...
74.86 KiB / 74.86 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-09-19T16:10:39Z INFO [secret] Secret scanning is enabled
2024-09-19T16:10:39Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-19T16:10:39Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection
2024-09-19T16:10:39Z ERROR [terraform parser] Error parsing file module="root" file_path="member-services-integrations.tf" err="member-services-integrations.tf:2055,78-2056,1: Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax., and 87 other diagnostic(s)"
2024-09-19T16:10:39Z INFO [terraform scanner] Scanning root module file_path="."
2024-09-19T16:10:39Z ERROR [terraform parser] Error parsing file module="root" file_path="member-services-integrations.tf" err="member-services-integrations.tf:2055,78-2056,1: Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax., and 87 other diagnostic(s)"
2024-09-19T16:10:39Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="pagerduty_token, pagerduty_user_token"
2024-09-19T16:10:39Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="pagerduty_team_membership.modernisation_platform_membership" value="cty.NilVal"
2024-09-19T16:10:39Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:5-16"
2024-09-19T16:10:39Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:102-111"
2024-09-19T16:10:39Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:116-125"
2024-09-19T16:10:39Z INFO Number of language-specific files num=0
2024-09-19T16:10:39Z INFO Detected config files num=3
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/pagerduty
*****************************
Running Checkov in terraform/pagerduty
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
terraform scan results:
Passed checks: 28, Failed checks: 0, Skipped checks: 10, Parsing errors: 1
checkov_exitcode=0
CTFLint Scan Failed
Show Output
*****************************
Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version:0.9.1)
tflint will check the following folders:
terraform/pagerduty
*****************************
Running tflint in terraform/pagerduty
Excluding the following checks: terraform_unused_declarations
Failed to load configurations; terraform/pagerduty/member-services-integrations.tf:2055,78-2056,1: Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax., and 87 other diagnostic(s):
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2055:2055:resource""pagerduty_event_orchestration""monitor-sprinkler-integration""" {2056: name = "Monitorsprinklerfororchestration"Quotedstringsmaynotbesplitovermultiplelines.Toproduceamulti-linestring, eitherusethe \nescapetorepresentanewlinecharacterorusethe"heredoc"multi-linetemplatesyntax.
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2056:2056:name = "Monitor sprinkler for orchestration"2057:description = "Integrates sprinkler-development account with PagerDuty"Quotedstringsmaynotbesplitovermultiplelines.Toproduceamulti-linestring, eitherusethe \nescapetorepresentanewlinecharacterorusethe"heredoc"multi-linetemplatesyntax.
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2057:2057:description = "Integrates sprinkler-development account with PagerDuty"2058:team = pagerduty_team.modernisation_platform.idQuotedstringsmaynotbesplitovermultiplelines.Toproduceamulti-linestring, eitherusethe \nescapetorepresentanewlinecharacterorusethe"heredoc"multi-linetemplatesyntax.
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2058:2058:team = pagerduty_team.modernisation_platform.id2059: }
Quotedstringsmaynotbesplitovermultiplelines.Toproduceamulti-linestring, eitherusethe \nescapetorepresentanewlinecharacterorusethe"heredoc"multi-linetemplatesyntax.
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2059:2059: }
2061:resource"pagerduty_slack_connection""sprinkler_connection" {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2061:2061: resource "pagerduty_slack_connection""sprinkler_connection" {
2062: source_id = pagerduty_service.sprinkler-development.id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2062:2062: source_id = pagerduty_service.sprinkler-development.id
2063: source_type ="service_reference"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2063:2063: source_type ="service_reference"2064: workspace_id = local.slack_workspace_id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2064:2064: workspace_id = local.slack_workspace_id
2065: channel_id ="C02PMCG8M1R"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2065:2065: channel_id ="C02PMCG8M1R"2066: notification_type ="responder"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2066:2066: notification_type ="responder"2067: lifecycle {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2067:2067: lifecycle {
2068: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2068:2068: }
2069: config {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2069:2069: config {
2070: events = [
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2070:2070: events = [
2071:"incident.triggered",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2071:2071:"incident.triggered",
2072:"incident.acknowledged",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2072:2072:"incident.acknowledged",
2073:"incident.escalated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2073:2073:"incident.escalated",
2074:"incident.resolved",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2074:2074:"incident.resolved",
2075:"incident.reassigned",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2075:2075:"incident.reassigned",
2076:"incident.annotated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2076:2076:"incident.annotated",
2077:"incident.unacknowledged",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2077:2077:"incident.unacknowledged",
2078:"incident.delegated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2078:2078:"incident.delegated",
2079:"incident.priority_updated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2079:2079:"incident.priority_updated",
2080:"incident.responder.added",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2080:2080:"incident.responder.added",
2081:"incident.responder.replied",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2081:2081:"incident.responder.replied",
2082:"incident.action_invocation.created",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2082:2082:"incident.action_invocation.created",
2083:"incident.action_invocation.terminated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2083:2083:"incident.action_invocation.terminated",
2084:"incident.action_invocation.updated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2084:2084:"incident.action_invocation.updated",
2085:"incident.status_update_published",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2085:2085:"incident.status_update_published",
2086:"incident.reopened"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2086:2086:"incident.reopened"2087: ]
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2087:2087: ]
2088: priorities = ["*"]
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2088:2088: priorities = ["*"]
2089: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2089:2089: }
2090: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2090:2090: }
2093:# Slack channel: #delius-aws-oracle-dev-alertsQuotedstringsmaynotbesplitovermultiplelines.Toproduceamulti-linestring, eitherusethe \nescapetorepresentanewlinecharacterorusethe"heredoc"multi-linetemplatesyntax.
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2093:2093:# Slack channel: #delius-aws-oracle-dev-alerts2095:resource"pagerduty_service""delius_oracle_nonprod" {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2095:2095: resource "pagerduty_service""delius_oracle_nonprod" {
2096: name ="Delius Oracle Non Prod"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2096:2096: name ="Delius Oracle Non Prod"2097: description ="Delius Oracle Non Prod Alarms"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2097:2097: description ="Delius Oracle Non Prod Alarms"2098: auto_resolve_timeout =345600
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2098:2098: auto_resolve_timeout =3456002099: acknowledgement_timeout ="null"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2099:2099: acknowledgement_timeout ="null"2100: escalation_policy = pagerduty_escalation_policy.member_policy.id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2100:2100: escalation_policy = pagerduty_escalation_policy.member_policy.id
2101: alert_creation ="create_alerts_and_incidents"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2101:2101: alert_creation ="create_alerts_and_incidents"2102: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2102:2102: }
2104:resource"pagerduty_service_integration""delius_oracle_nonprod_cloudwatch" {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2104:2104: resource "pagerduty_service_integration""delius_oracle_nonprod_cloudwatch" {
2105: name = data.pagerduty_vendor.cloudwatch.name
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2105:2105: name = data.pagerduty_vendor.cloudwatch.name
2106: service = pagerduty_service.delius_oracle_nonprod.id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2106:2106: service = pagerduty_service.delius_oracle_nonprod.id
2107: vendor = data.pagerduty_vendor.cloudwatch.id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2107:2107: vendor = data.pagerduty_vendor.cloudwatch.id
2108: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2108:2108: }
2110:resource"pagerduty_slack_connection""delius_oracle_nonprod_connection" {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2110:2110: resource "pagerduty_slack_connection""delius_oracle_nonprod_connection" {
2111: source_id = pagerduty_service.delius_oracle_nonprod.id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2111:2111: source_id = pagerduty_service.delius_oracle_nonprod.id
2112: source_type ="service_reference"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2112:2112: source_type ="service_reference"2113: workspace_id = local.slack_workspace_id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2113:2113: workspace_id = local.slack_workspace_id
2114: channel_id ="CR82RV51Q"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2114:2114: channel_id ="CR82RV51Q"2115: notification_type ="responder"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2115:2115: notification_type ="responder"2116: lifecycle {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2116:2116: lifecycle {
2117: ignore_changes = [
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2117:2117: ignore_changes = [
2118: config,
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2118:2118: config,
2119: ]
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2119:2119: ]
2120: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2120:2120: }
2121: config {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2121:2121: config {
2122: events = [
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2122:2122: events = [
2123:"incident.triggered",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2123:2123:"incident.triggered",
2124:"incident.acknowledged",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2124:2124:"incident.acknowledged",
2125:"incident.escalated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2125:2125:"incident.escalated",
2126:"incident.resolved",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2126:2126:"incident.resolved",
2127:"incident.reassigned",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2127:2127:"incident.reassigned",
2128:"incident.annotated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2128:2128:"incident.annotated",
2129:"incident.unacknowledged",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2129:2129:"incident.unacknowledged",
2130:"incident.delegated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2130:2130:"incident.delegated",
2131:"incident.priority_updated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2131:2131:"incident.priority_updated",
2132:"incident.action_invocation.created",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2132:2132:"incident.action_invocation.created",
2133:"incident.action_invocation.terminated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2133:2133:"incident.action_invocation.terminated",
2134:"incident.action_invocation.updated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2134:2134:"incident.action_invocation.updated",
2135:"incident.responder.added",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2135:2135:"incident.responder.added",
2136:"incident.responder.replied",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2136:2136:"incident.responder.replied",
2137:"incident.status_update_published",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2137:2137:"incident.status_update_published",
2138:"incident.reopened"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2138:2138:"incident.reopened"2139: ]
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2139:2139: ]
2140: priorities = ["*"]
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2140:2140: priorities = ["*"]
2141: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2141:2141: }
2142: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2055:2055: resource ""pagerduty_event_orchestration""monitor-sprinkler-integration""" {2056: name = "Monitor sprinkler fororchestration"
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2056:2056: name ="Monitor sprinkler for orchestration"2057: description ="Integrates sprinkler-development account with PagerDuty"
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2057:2057: description ="Integrates sprinkler-development account with PagerDuty"2058: team = pagerduty_team.modernisation_platform.id
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2061:2061: resource "pagerduty_slack_connection""sprinkler_connection" {
2062: source_id = pagerduty_service.sprinkler-development.id
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2063:2063: source_type ="service_reference"2064: workspace_id = local.slack_workspace_id
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2065:2065: channel_id ="C02PMCG8M1R"2066: notification_type ="responder"
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2066:2066: notification_type ="responder"2067: lifecycle {
This item is not valid in a string literal.
tflint_exitcode=1
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/pagerduty
*****************************
Running Trivy in terraform/pagerduty
2024-09-19T16:10:37Z INFO [db] Need to update DB
2024-09-19T16:10:37Z INFO [db] Downloading DB...repository="ghcr.io/aquasecurity/trivy-db:2"2024-09-19T16:10:39Z INFO [vuln] Vulnerability scanning is enabled
2024-09-19T16:10:39Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-19T16:10:39Z INFO Need to update the built-in policies
2024-09-19T16:10:39Z INFO Downloading the built-in policies...74.86 KiB /74.86 KiB [-----------------------------------------------------------] 100.00%? p/s 0s2024-09-19T16:10:39Z INFO [secret] Secret scanning is enabled
2024-09-19T16:10:39Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-19T16:10:39Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection2024-09-19T16:10:39Z ERROR [terraformparser] Error parsing file module="root"file_path="member-services-integrations.tf"err="member-services-integrations.tf:2055,78-2056,1: Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \\n escape to represent a newline character or use the \"heredoc\" multi-line template syntax., and 87 other diagnostic(s)"2024-09-19T16:10:39Z INFO [terraformscanner] Scanning root module file_path="."2024-09-19T16:10:39Z ERROR [terraformparser] Error parsing file module="root"file_path="member-services-integrations.tf"err="member-services-integrations.tf:2055,78-2056,1: Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \\n escape to represent a newline character or use the \"heredoc\" multi-line template syntax., and 87 other diagnostic(s)"2024-09-19T16:10:39Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="pagerduty_token, pagerduty_user_token"2024-09-19T16:10:39Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="pagerduty_team_membership.modernisation_platform_membership"value="cty.NilVal"2024-09-19T16:10:39Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:5-16"2024-09-19T16:10:39Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:102-111"2024-09-19T16:10:39Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:116-125"2024-09-19T16:10:39Z INFO Number of language-specific files num=02024-09-19T16:10:39Z INFO Detected config files num=3trivy_exitcode=0
Trivy will check the following folders:
terraform/environments/core-vpc
terraform/pagerduty
Running Trivy in terraform/environments/core-vpc
2024-09-20T07:36:12Z INFO [db] Need to update DB
2024-09-20T07:36:12Z INFO [db] Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-09-20T07:36:14Z INFO [vuln] Vulnerability scanning is enabled
2024-09-20T07:36:14Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-20T07:36:14Z INFO Need to update the built-in policies
2024-09-20T07:36:14Z INFO Downloading the built-in policies...
74.86 KiB / 74.86 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-09-20T07:36:15Z INFO [secret] Secret scanning is enabled
2024-09-20T07:36:15Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-20T07:36:15Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection
2024-09-20T07:36:15Z INFO [terraform scanner] Scanning root module file_path="."
2024-09-20T07:36:15Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_iam_role.member-delegation" value="cty.NilVal"
2024-09-20T07:36:15Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_iam_role_policy.member-delegation" value="cty.NilVal"
2024-09-20T07:36:15Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.dns-zone" value="cty.NilVal"
2024-09-20T07:36:15Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.dns_zone_extend" value="cty.NilVal"
2024-09-20T07:36:15Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.dns_zone_extend_private" value="cty.NilVal"
2024-09-20T07:36:15Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.resource-share" value="cty.NilVal"
2024-09-20T07:36:15Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.vpc" value="cty.NilVal"
2024-09-20T07:36:15Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.vpc_attachment" value="cty.NilVal"
2024-09-20T07:36:15Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.vpc_nacls" value="cty.NilVal"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:31-50"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:31-50"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:31-50"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:31-50"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:31-50"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:48"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:31-50"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:31-50"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:31-50"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:31-50"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:31-50"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:48"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-sns-enable-topic-encryption" range="monitoring.tf:9-15"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-cloudwatch-log-group-customer-key" range="../../modules/r53-resolver-logs/main.tf:13-17"
2024-09-20T07:36:17Z INFO Number of language-specific files num=0
2024-09-20T07:36:17Z INFO Detected config files num=4
trivy_exitcode=0
Running Trivy in terraform/pagerduty
2024-09-20T07:36:17Z INFO [vuln] Vulnerability scanning is enabled
2024-09-20T07:36:17Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-20T07:36:17Z INFO [secret] Secret scanning is enabled
2024-09-20T07:36:17Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-20T07:36:17Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection
2024-09-20T07:36:17Z ERROR [terraform parser] Error parsing file module="root" file_path="member-services-integrations.tf" err="member-services-integrations.tf:2055,78-2056,1: Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax., and 87 other diagnostic(s)"
2024-09-20T07:36:17Z INFO [terraform scanner] Scanning root module file_path="."
2024-09-20T07:36:17Z ERROR [terraform parser] Error parsing file module="root" file_path="member-services-integrations.tf" err="member-services-integrations.tf:2055,78-2056,1: Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax., and 87 other diagnostic(s)"
2024-09-20T07:36:17Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="pagerduty_token, pagerduty_user_token"
2024-09-20T07:36:17Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="pagerduty_team_membership.modernisation_platform_membership" value="cty.NilVal"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:5-16"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:102-111"
2024-09-20T07:36:17Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:116-125"
2024-09-20T07:36:17Z INFO Number of language-specific files num=0
2024-09-20T07:36:17Z INFO Detected config files num=3
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/environments/core-vpc
terraform/pagerduty
*****************************
Running Checkov in terraform/environments/core-vpc
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
2024-09-20 07:36:20,845 [MainThread ] [WARNI] Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-pagerduty-integration?ref=0179859e6fafc567843cd55c0b05d325d5012dc4:None (for external modules, the --download-external-modules flag is required)
2024-09-20 07:36:20,846 [MainThread ] [WARNI] Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-aws-data-firehose?ref=2e58c8fd0b43ca8461dfd0c8cc5f43a1a9c49987:None (for external modules, the --download-external-modules flag is required)
2024-09-20 07:36:20,846 [MainThread ] [WARNI] Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-member-vpc?ref=3094604aee5121f9794d60d3f27d21d6209e59d4:None (for external modules, the --download-external-modules flag is required)
2024-09-20 07:36:20,846 [MainThread ] [WARNI] Failed to download module github.com/ministryofjustice/terraform-aws-observability-platform-tenant?ref=fbbe5c8282786bcc0a00c969fe598e14f12eea9b:None (for external modules, the --download-external-modules flag is required)
terraform scan results:
Passed checks: 171, Failed checks: 0, Skipped checks: 36
checkov_exitcode=0
*****************************
Running Checkov in terraform/pagerduty
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
terraform scan results:
Passed checks: 28, Failed checks: 0, Skipped checks: 10, Parsing errors: 1
checkov_exitcode=0
CTFLint Scan Failed
Show Output
*****************************
Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version:0.9.1)
tflint will check the following folders:
terraform/environments/core-vpc
terraform/pagerduty
*****************************
Running tflint in terraform/environments/core-vpc
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=0*****************************
Running tflint in terraform/pagerduty
Excluding the following checks: terraform_unused_declarations
Failed to load configurations; terraform/pagerduty/member-services-integrations.tf:2055,78-2056,1: Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax., and 87 other diagnostic(s):
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2055:2055:resource""pagerduty_event_orchestration""monitor-sprinkler-integration""" {2056: name = "Monitorsprinklerfororchestration"Quotedstringsmaynotbesplitovermultiplelines.Toproduceamulti-linestring, eitherusethe \nescapetorepresentanewlinecharacterorusethe"heredoc"multi-linetemplatesyntax.
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2056:2056:name = "Monitor sprinkler for orchestration"2057:description = "Integrates sprinkler-development account with PagerDuty"Quotedstringsmaynotbesplitovermultiplelines.Toproduceamulti-linestring, eitherusethe \nescapetorepresentanewlinecharacterorusethe"heredoc"multi-linetemplatesyntax.
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2057:2057:description = "Integrates sprinkler-development account with PagerDuty"2058:team = pagerduty_team.modernisation_platform.idQuotedstringsmaynotbesplitovermultiplelines.Toproduceamulti-linestring, eitherusethe \nescapetorepresentanewlinecharacterorusethe"heredoc"multi-linetemplatesyntax.
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2058:2058:team = pagerduty_team.modernisation_platform.id2059: }
Quotedstringsmaynotbesplitovermultiplelines.Toproduceamulti-linestring, eitherusethe \nescapetorepresentanewlinecharacterorusethe"heredoc"multi-linetemplatesyntax.
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2059:2059: }
2061:resource"pagerduty_slack_connection""sprinkler_connection" {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2061:2061: resource "pagerduty_slack_connection""sprinkler_connection" {
2062: source_id = pagerduty_service.sprinkler-development.id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2062:2062: source_id = pagerduty_service.sprinkler-development.id
2063: source_type ="service_reference"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2063:2063: source_type ="service_reference"2064: workspace_id = local.slack_workspace_id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2064:2064: workspace_id = local.slack_workspace_id
2065: channel_id ="C02PMCG8M1R"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2065:2065: channel_id ="C02PMCG8M1R"2066: notification_type ="responder"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2066:2066: notification_type ="responder"2067: lifecycle {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2067:2067: lifecycle {
2068: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2068:2068: }
2069: config {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2069:2069: config {
2070: events = [
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2070:2070: events = [
2071:"incident.triggered",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2071:2071:"incident.triggered",
2072:"incident.acknowledged",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2072:2072:"incident.acknowledged",
2073:"incident.escalated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2073:2073:"incident.escalated",
2074:"incident.resolved",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2074:2074:"incident.resolved",
2075:"incident.reassigned",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2075:2075:"incident.reassigned",
2076:"incident.annotated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2076:2076:"incident.annotated",
2077:"incident.unacknowledged",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2077:2077:"incident.unacknowledged",
2078:"incident.delegated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2078:2078:"incident.delegated",
2079:"incident.priority_updated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2079:2079:"incident.priority_updated",
2080:"incident.responder.added",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2080:2080:"incident.responder.added",
2081:"incident.responder.replied",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2081:2081:"incident.responder.replied",
2082:"incident.action_invocation.created",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2082:2082:"incident.action_invocation.created",
2083:"incident.action_invocation.terminated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2083:2083:"incident.action_invocation.terminated",
2084:"incident.action_invocation.updated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2084:2084:"incident.action_invocation.updated",
2085:"incident.status_update_published",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2085:2085:"incident.status_update_published",
2086:"incident.reopened"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2086:2086:"incident.reopened"2087: ]
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2087:2087: ]
2088: priorities = ["*"]
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2088:2088: priorities = ["*"]
2089: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2089:2089: }
2090: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2090:2090: }
2093:# Slack channel: #delius-aws-oracle-dev-alertsQuotedstringsmaynotbesplitovermultiplelines.Toproduceamulti-linestring, eitherusethe \nescapetorepresentanewlinecharacterorusethe"heredoc"multi-linetemplatesyntax.
�[31mError�[0m:Invalidmulti-linestringonterraform/pagerduty/member-services-integrations.tfline2093:2093:# Slack channel: #delius-aws-oracle-dev-alerts2095:resource"pagerduty_service""delius_oracle_nonprod" {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2095:2095: resource "pagerduty_service""delius_oracle_nonprod" {
2096: name ="Delius Oracle Non Prod"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2096:2096: name ="Delius Oracle Non Prod"2097: description ="Delius Oracle Non Prod Alarms"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2097:2097: description ="Delius Oracle Non Prod Alarms"2098: auto_resolve_timeout =345600
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2098:2098: auto_resolve_timeout =3456002099: acknowledgement_timeout ="null"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2099:2099: acknowledgement_timeout ="null"2100: escalation_policy = pagerduty_escalation_policy.member_policy.id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2100:2100: escalation_policy = pagerduty_escalation_policy.member_policy.id
2101: alert_creation ="create_alerts_and_incidents"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2101:2101: alert_creation ="create_alerts_and_incidents"2102: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2102:2102: }
2104:resource"pagerduty_service_integration""delius_oracle_nonprod_cloudwatch" {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2104:2104: resource "pagerduty_service_integration""delius_oracle_nonprod_cloudwatch" {
2105: name = data.pagerduty_vendor.cloudwatch.name
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2105:2105: name = data.pagerduty_vendor.cloudwatch.name
2106: service = pagerduty_service.delius_oracle_nonprod.id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2106:2106: service = pagerduty_service.delius_oracle_nonprod.id
2107: vendor = data.pagerduty_vendor.cloudwatch.id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2107:2107: vendor = data.pagerduty_vendor.cloudwatch.id
2108: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2108:2108: }
2110:resource"pagerduty_slack_connection""delius_oracle_nonprod_connection" {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2110:2110: resource "pagerduty_slack_connection""delius_oracle_nonprod_connection" {
2111: source_id = pagerduty_service.delius_oracle_nonprod.id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2111:2111: source_id = pagerduty_service.delius_oracle_nonprod.id
2112: source_type ="service_reference"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2112:2112: source_type ="service_reference"2113: workspace_id = local.slack_workspace_id
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2113:2113: workspace_id = local.slack_workspace_id
2114: channel_id ="CR82RV51Q"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2114:2114: channel_id ="CR82RV51Q"2115: notification_type ="responder"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2115:2115: notification_type ="responder"2116: lifecycle {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2116:2116: lifecycle {
2117: ignore_changes = [
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2117:2117: ignore_changes = [
2118: config,
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2118:2118: config,
2119: ]
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2119:2119: ]
2120: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2120:2120: }
2121: config {
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2121:2121: config {
2122: events = [
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2122:2122: events = [
2123:"incident.triggered",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2123:2123:"incident.triggered",
2124:"incident.acknowledged",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2124:2124:"incident.acknowledged",
2125:"incident.escalated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2125:2125:"incident.escalated",
2126:"incident.resolved",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2126:2126:"incident.resolved",
2127:"incident.reassigned",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2127:2127:"incident.reassigned",
2128:"incident.annotated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2128:2128:"incident.annotated",
2129:"incident.unacknowledged",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2129:2129:"incident.unacknowledged",
2130:"incident.delegated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2130:2130:"incident.delegated",
2131:"incident.priority_updated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2131:2131:"incident.priority_updated",
2132:"incident.action_invocation.created",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2132:2132:"incident.action_invocation.created",
2133:"incident.action_invocation.terminated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2133:2133:"incident.action_invocation.terminated",
2134:"incident.action_invocation.updated",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2134:2134:"incident.action_invocation.updated",
2135:"incident.responder.added",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2135:2135:"incident.responder.added",
2136:"incident.responder.replied",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2136:2136:"incident.responder.replied",
2137:"incident.status_update_published",
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2137:2137:"incident.status_update_published",
2138:"incident.reopened"
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2138:2138:"incident.reopened"2139: ]
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2139:2139: ]
2140: priorities = ["*"]
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2140:2140: priorities = ["*"]
2141: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid multi-line string
on terraform/pagerduty/member-services-integrations.tf line 2141:2141: }
2142: }
Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2055:2055: resource ""pagerduty_event_orchestration""monitor-sprinkler-integration""" {2056: name = "Monitor sprinkler fororchestration"
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2056:2056: name ="Monitor sprinkler for orchestration"2057: description ="Integrates sprinkler-development account with PagerDuty"
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2057:2057: description ="Integrates sprinkler-development account with PagerDuty"2058: team = pagerduty_team.modernisation_platform.id
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2061:2061: resource "pagerduty_slack_connection""sprinkler_connection" {
2062: source_id = pagerduty_service.sprinkler-development.id
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2063:2063: source_type ="service_reference"2064: workspace_id = local.slack_workspace_id
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2065:2065: channel_id ="C02PMCG8M1R"2066: notification_type ="responder"
This item is not valid in a string literal.
�[31mError�[0m: Invalid string literal
on terraform/pagerduty/member-services-integrations.tf line 2066:2066: notification_type ="responder"2067: lifecycle {
This item is not valid in a string literal.
tflint_exitcode=1
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/environments/core-vpc
terraform/pagerduty
*****************************
Running Trivy in terraform/environments/core-vpc
2024-09-20T07:36:12Z INFO [db] Need to update DB
2024-09-20T07:36:12Z INFO [db] Downloading DB...repository="ghcr.io/aquasecurity/trivy-db:2"2024-09-20T07:36:14Z INFO [vuln] Vulnerability scanning is enabled
2024-09-20T07:36:14Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-20T07:36:14Z INFO Need to update the built-in policies
2024-09-20T07:36:14Z INFO Downloading the built-in policies...74.86 KiB /74.86 KiB [-----------------------------------------------------------] 100.00%? p/s 0s2024-09-20T07:36:15Z INFO [secret] Secret scanning is enabled
2024-09-20T07:36:15Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-20T07:36:15Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection2024-09-20T07:36:15Z INFO [terraformscanner] Scanning root module file_path="."2024-09-20T07:36:15Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="aws_iam_role.member-delegation"value="cty.NilVal"2024-09-20T07:36:15Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="aws_iam_role_policy.member-delegation"value="cty.NilVal"2024-09-20T07:36:15Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.dns-zone"value="cty.NilVal"2024-09-20T07:36:15Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.dns_zone_extend"value="cty.NilVal"2024-09-20T07:36:15Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.dns_zone_extend_private"value="cty.NilVal"2024-09-20T07:36:15Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.resource-share"value="cty.NilVal"2024-09-20T07:36:15Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.vpc"value="cty.NilVal"2024-09-20T07:36:15Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.vpc_attachment"value="cty.NilVal"2024-09-20T07:36:15Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.vpc_nacls"value="cty.NilVal"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:31-50"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:31-50"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:31-50"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:31-50"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:31-50"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:48"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:31-50"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:31-50"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:31-50"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:31-50"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:31-50"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-iam-no-policy-wildcards"range="iam.tf:48"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-sns-enable-topic-encryption"range="monitoring.tf:9-15"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-cloudwatch-log-group-customer-key"range="../../modules/r53-resolver-logs/main.tf:13-17"2024-09-20T07:36:17Z INFO Number of language-specific files num=02024-09-20T07:36:17Z INFO Detected config files num=4trivy_exitcode=0*****************************
Running Trivy in terraform/pagerduty
2024-09-20T07:36:17Z INFO [vuln] Vulnerability scanning is enabled
2024-09-20T07:36:17Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-20T07:36:17Z INFO [secret] Secret scanning is enabled
2024-09-20T07:36:17Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-20T07:36:17Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection2024-09-20T07:36:17Z ERROR [terraformparser] Error parsing file module="root"file_path="member-services-integrations.tf"err="member-services-integrations.tf:2055,78-2056,1: Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \\n escape to represent a newline character or use the \"heredoc\" multi-line template syntax., and 87 other diagnostic(s)"2024-09-20T07:36:17Z INFO [terraformscanner] Scanning root module file_path="."2024-09-20T07:36:17Z ERROR [terraformparser] Error parsing file module="root"file_path="member-services-integrations.tf"err="member-services-integrations.tf:2055,78-2056,1: Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \\n escape to represent a newline character or use the \"heredoc\" multi-line template syntax., and 87 other diagnostic(s)"2024-09-20T07:36:17Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="pagerduty_token, pagerduty_user_token"2024-09-20T07:36:17Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="pagerduty_team_membership.modernisation_platform_membership"value="cty.NilVal"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:5-16"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:102-111"2024-09-20T07:36:17Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:116-125"2024-09-20T07:36:17Z INFO Number of language-specific files num=02024-09-20T07:36:17Z INFO Detected config files num=3trivy_exitcode=0
Trivy will check the following folders:
terraform/pagerduty
Running Trivy in terraform/pagerduty
2024-09-20T07:54:49Z INFO [db] Need to update DB
2024-09-20T07:54:49Z INFO [db] Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-09-20T07:54:51Z INFO [vuln] Vulnerability scanning is enabled
2024-09-20T07:54:51Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-20T07:54:51Z INFO Need to update the built-in policies
2024-09-20T07:54:51Z INFO Downloading the built-in policies...
74.86 KiB / 74.86 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-09-20T07:54:51Z INFO [secret] Secret scanning is enabled
2024-09-20T07:54:51Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-20T07:54:51Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection
2024-09-20T07:54:51Z INFO [terraform scanner] Scanning root module file_path="."
2024-09-20T07:54:51Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="pagerduty_token, pagerduty_user_token"
2024-09-20T07:54:51Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="pagerduty_team_membership.modernisation_platform_membership" value="cty.NilVal"
2024-09-20T07:54:51Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:5-16"
2024-09-20T07:54:51Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:102-111"
2024-09-20T07:54:51Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:116-125"
2024-09-20T07:54:51Z INFO Number of language-specific files num=0
2024-09-20T07:54:51Z INFO Detected config files num=3
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/pagerduty
*****************************
Running Checkov in terraform/pagerduty
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
terraform scan results:
Passed checks: 28, Failed checks: 0, Skipped checks: 10
checkov_exitcode=0
CTFLint Scan Success
Show Output
*****************************
Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version:0.9.1)
tflint will check the following folders:
terraform/pagerduty
*****************************
Running tflint in terraform/pagerduty
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=0
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/pagerduty
*****************************
Running Trivy in terraform/pagerduty
2024-09-20T07:54:49Z INFO [db] Need to update DB
2024-09-20T07:54:49Z INFO [db] Downloading DB...repository="ghcr.io/aquasecurity/trivy-db:2"2024-09-20T07:54:51Z INFO [vuln] Vulnerability scanning is enabled
2024-09-20T07:54:51Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-20T07:54:51Z INFO Need to update the built-in policies
2024-09-20T07:54:51Z INFO Downloading the built-in policies...74.86 KiB /74.86 KiB [-----------------------------------------------------------] 100.00%? p/s 0s2024-09-20T07:54:51Z INFO [secret] Secret scanning is enabled
2024-09-20T07:54:51Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-20T07:54:51Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection2024-09-20T07:54:51Z INFO [terraformscanner] Scanning root module file_path="."2024-09-20T07:54:51Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="pagerduty_token, pagerduty_user_token"2024-09-20T07:54:51Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="pagerduty_team_membership.modernisation_platform_membership"value="cty.NilVal"2024-09-20T07:54:51Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:5-16"2024-09-20T07:54:51Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:102-111"2024-09-20T07:54:51Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:116-125"2024-09-20T07:54:51Z INFO Number of language-specific files num=02024-09-20T07:54:51Z INFO Detected config files num=3trivy_exitcode=0
Trivy will check the following folders:
terraform/pagerduty
Running Trivy in terraform/pagerduty
2024-09-24T08:44:16Z INFO [db] Need to update DB
2024-09-24T08:44:16Z INFO [db] Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-09-24T08:44:18Z INFO [vuln] Vulnerability scanning is enabled
2024-09-24T08:44:18Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-24T08:44:18Z INFO Need to update the built-in policies
2024-09-24T08:44:18Z INFO Downloading the built-in policies...
74.86 KiB / 74.86 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-09-24T08:44:19Z INFO [secret] Secret scanning is enabled
2024-09-24T08:44:19Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-24T08:44:19Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection
2024-09-24T08:44:19Z INFO [terraform scanner] Scanning root module file_path="."
2024-09-24T08:44:19Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="pagerduty_token, pagerduty_user_token"
2024-09-24T08:44:19Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="pagerduty_team_membership.modernisation_platform_membership" value="cty.NilVal"
2024-09-24T08:44:19Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:5-16"
2024-09-24T08:44:19Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:102-111"
2024-09-24T08:44:19Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:116-125"
2024-09-24T08:44:19Z INFO Number of language-specific files num=0
2024-09-24T08:44:19Z INFO Detected config files num=3
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/pagerduty
*****************************
Running Checkov in terraform/pagerduty
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
terraform scan results:
Passed checks: 28, Failed checks: 0, Skipped checks: 10
checkov_exitcode=0
CTFLint Scan Success
Show Output
*****************************
Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version:0.9.1)
tflint will check the following folders:
terraform/pagerduty
*****************************
Running tflint in terraform/pagerduty
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=0
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/pagerduty
*****************************
Running Trivy in terraform/pagerduty
2024-09-24T08:44:16Z INFO [db] Need to update DB
2024-09-24T08:44:16Z INFO [db] Downloading DB...repository="ghcr.io/aquasecurity/trivy-db:2"2024-09-24T08:44:18Z INFO [vuln] Vulnerability scanning is enabled
2024-09-24T08:44:18Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-24T08:44:18Z INFO Need to update the built-in policies
2024-09-24T08:44:18Z INFO Downloading the built-in policies...74.86 KiB /74.86 KiB [-----------------------------------------------------------] 100.00%? p/s 0s2024-09-24T08:44:19Z INFO [secret] Secret scanning is enabled
2024-09-24T08:44:19Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-24T08:44:19Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection2024-09-24T08:44:19Z INFO [terraformscanner] Scanning root module file_path="."2024-09-24T08:44:19Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="pagerduty_token, pagerduty_user_token"2024-09-24T08:44:19Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="pagerduty_team_membership.modernisation_platform_membership"value="cty.NilVal"2024-09-24T08:44:19Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:5-16"2024-09-24T08:44:19Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:102-111"2024-09-24T08:44:19Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:116-125"2024-09-24T08:44:19Z INFO Number of language-specific files num=02024-09-24T08:44:19Z INFO Detected config files num=3trivy_exitcode=0
Trivy will check the following folders:
terraform/pagerduty
Running Trivy in terraform/pagerduty
2024-09-24T08:47:49Z INFO [db] Need to update DB
2024-09-24T08:47:49Z INFO [db] Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-09-24T08:47:50Z INFO [vuln] Vulnerability scanning is enabled
2024-09-24T08:47:50Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-24T08:47:50Z INFO Need to update the built-in policies
2024-09-24T08:47:50Z INFO Downloading the built-in policies...
74.86 KiB / 74.86 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-09-24T08:47:51Z INFO [secret] Secret scanning is enabled
2024-09-24T08:47:51Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-24T08:47:51Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection
2024-09-24T08:47:51Z INFO [terraform scanner] Scanning root module file_path="."
2024-09-24T08:47:51Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="pagerduty_token, pagerduty_user_token"
2024-09-24T08:47:51Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="pagerduty_team_membership.modernisation_platform_membership" value="cty.NilVal"
2024-09-24T08:47:51Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:5-16"
2024-09-24T08:47:51Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:102-111"
2024-09-24T08:47:51Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:116-125"
2024-09-24T08:47:51Z INFO Number of language-specific files num=0
2024-09-24T08:47:51Z INFO Detected config files num=3
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/pagerduty
*****************************
Running Checkov in terraform/pagerduty
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
terraform scan results:
Passed checks: 28, Failed checks: 0, Skipped checks: 10
checkov_exitcode=0
CTFLint Scan Success
Show Output
*****************************
Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version:0.9.1)
tflint will check the following folders:
terraform/pagerduty
*****************************
Running tflint in terraform/pagerduty
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=0
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/pagerduty
*****************************
Running Trivy in terraform/pagerduty
2024-09-24T08:47:49Z INFO [db] Need to update DB
2024-09-24T08:47:49Z INFO [db] Downloading DB...repository="ghcr.io/aquasecurity/trivy-db:2"2024-09-24T08:47:50Z INFO [vuln] Vulnerability scanning is enabled
2024-09-24T08:47:50Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-24T08:47:50Z INFO Need to update the built-in policies
2024-09-24T08:47:50Z INFO Downloading the built-in policies...74.86 KiB /74.86 KiB [-----------------------------------------------------------] 100.00%? p/s 0s2024-09-24T08:47:51Z INFO [secret] Secret scanning is enabled
2024-09-24T08:47:51Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-24T08:47:51Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection2024-09-24T08:47:51Z INFO [terraformscanner] Scanning root module file_path="."2024-09-24T08:47:51Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="pagerduty_token, pagerduty_user_token"2024-09-24T08:47:51Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="pagerduty_team_membership.modernisation_platform_membership"value="cty.NilVal"2024-09-24T08:47:51Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:5-16"2024-09-24T08:47:51Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:102-111"2024-09-24T08:47:51Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:116-125"2024-09-24T08:47:51Z INFO Number of language-specific files num=02024-09-24T08:47:51Z INFO Detected config files num=3trivy_exitcode=0
Trivy will check the following folders:
terraform/pagerduty
Running Trivy in terraform/pagerduty
2024-09-24T09:58:27Z INFO [db] Need to update DB
2024-09-24T09:58:27Z INFO [db] Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-09-24T09:58:29Z INFO [vuln] Vulnerability scanning is enabled
2024-09-24T09:58:29Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-24T09:58:29Z INFO Need to update the built-in policies
2024-09-24T09:58:29Z INFO Downloading the built-in policies...
74.86 KiB / 74.86 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-09-24T09:58:30Z INFO [secret] Secret scanning is enabled
2024-09-24T09:58:30Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-24T09:58:30Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection
2024-09-24T09:58:30Z INFO [terraform scanner] Scanning root module file_path="."
2024-09-24T09:58:30Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="pagerduty_token, pagerduty_user_token"
2024-09-24T09:58:30Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="pagerduty_team_membership.modernisation_platform_membership" value="cty.NilVal"
2024-09-24T09:58:30Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:5-16"
2024-09-24T09:58:30Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:102-111"
2024-09-24T09:58:30Z INFO [terraform executor] Ignore finding rule="aws-ssm-secret-use-customer-key" range="aws.tf:116-125"
2024-09-24T09:58:30Z INFO Number of language-specific files num=0
2024-09-24T09:58:30Z INFO Detected config files num=3
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/pagerduty
*****************************
Running Checkov in terraform/pagerduty
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
terraform scan results:
Passed checks: 28, Failed checks: 0, Skipped checks: 10
checkov_exitcode=0
CTFLint Scan Success
Show Output
*****************************
Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version:0.9.1)
tflint will check the following folders:
terraform/pagerduty
*****************************
Running tflint in terraform/pagerduty
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=0
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/pagerduty
*****************************
Running Trivy in terraform/pagerduty
2024-09-24T09:58:27Z INFO [db] Need to update DB
2024-09-24T09:58:27Z INFO [db] Downloading DB...repository="ghcr.io/aquasecurity/trivy-db:2"2024-09-24T09:58:29Z INFO [vuln] Vulnerability scanning is enabled
2024-09-24T09:58:29Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-24T09:58:29Z INFO Need to update the built-in policies
2024-09-24T09:58:29Z INFO Downloading the built-in policies...74.86 KiB /74.86 KiB [-----------------------------------------------------------] 100.00%? p/s 0s2024-09-24T09:58:30Z INFO [secret] Secret scanning is enabled
2024-09-24T09:58:30Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-24T09:58:30Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection2024-09-24T09:58:30Z INFO [terraformscanner] Scanning root module file_path="."2024-09-24T09:58:30Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="pagerduty_token, pagerduty_user_token"2024-09-24T09:58:30Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="pagerduty_team_membership.modernisation_platform_membership"value="cty.NilVal"2024-09-24T09:58:30Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:5-16"2024-09-24T09:58:30Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:102-111"2024-09-24T09:58:30Z INFO [terraformexecutor] Ignore finding rule="aws-ssm-secret-use-customer-key"range="aws.tf:116-125"2024-09-24T09:58:30Z INFO Number of language-specific files num=02024-09-24T09:58:30Z INFO Detected config files num=3trivy_exitcode=0
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This code, initially, sets up a different channel for Sprinkler. More importantly, however, is the change to cdpt_chaps_cloudwatch where the code has been amended to replace agerduty_service_integration with pagerduty_event_orchestration. This is to ensure that changes due to happen early next year will not impact us. We are currently testing this to make sure it has no impact on our services.
The code was also amended to put the low priority alarms code in place. Again this has been amended to fix an issue with the value.
The initial code has been left, commented out, so that we can reinstate if required.
Also see request #5980