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
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-08T13:16:35Z INFO [vulndb] Need to update DB
2025-01-08T13:16:35Z INFO [vulndb] Downloading vulnerability DB...
2025-01-08T13:16:35Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T13:16:37Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T13:16:37Z INFO [vuln] Vulnerability scanning is enabled
2025-01-08T13:16:37Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-08T13:16:37Z INFO [misconfig] Need to update the built-in checks
2025-01-08T13:16:37Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [------------------------------------------------------] 100.00% ? p/s 100ms2025-01-08T13:16:38Z INFO [secret] Secret scanning is enabled
2025-01-08T13:16:38Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T13:16:38Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-08T13:16:39Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-08T13:16:39Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"
2025-01-08T13:16:39Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.instance.aws_ebs_volume.this" value="cty.NilVal"
2025-01-08T13:16:39Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T13:16:39Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T13:16:39Z INFO [terraform executor] Ignore finding rule="aws-ec2-enforce-http-token-imds" range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"
2025-01-08T13:16:40Z INFO Number of language-specific files num=0
2025-01-08T13:16:40Z INFO Detected config files num=2
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
*****************************
Running Checkov in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
2025-01-08 13:16:42,871 [MainThread ] [WARNI] Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0:None (for external modules, the --download-external-modules flag is required)
terraform scan results:
Passed checks: 0, Failed checks: 0, Skipped checks: 2
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/delius-core/modules/components/oracle_db_instance
*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: terraform_unused_declarations
4issue(s) found:
Warning: Duplicate key:"datapoints_to_alarm", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:49,9-28 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 55:55:datapoints_to_alarm="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: Duplicate key:"evaluation_periods", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:48,9-27 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 56:56:evaluation_periods="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: `server_type_tag` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 36:36:variable"server_type_tag" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.md
Warning: `database_tag_prefix` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 41:41:variable"database_tag_prefix" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.mdtflint_exitcode=2
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-08T13:16:35Z INFO [vulndb] Need to update DB
2025-01-08T13:16:35Z INFO [vulndb] Downloading vulnerability DB...2025-01-08T13:16:35Z INFO [vulndb] Downloading artifact...repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-08T13:16:37Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-08T13:16:37Z INFO [vuln] Vulnerability scanning is enabled
2025-01-08T13:16:37Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-08T13:16:37Z INFO [misconfig] Need to update the built-in checks
2025-01-08T13:16:37Z INFO [misconfig] Downloading the built-in checks...160.80 KiB /160.80 KiB [------------------------------------------------------] 100.00%? p/s 100ms2025-01-08T13:16:38Z INFO [secret] Secret scanning is enabled
2025-01-08T13:16:38Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T13:16:38Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-08T13:16:39Z INFO [terraformscanner] Scanning root module file_path="."2025-01-08T13:16:39Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"2025-01-08T13:16:39Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.instance.aws_ebs_volume.this"value="cty.NilVal"2025-01-08T13:16:39Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-08T13:16:39Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-08T13:16:39Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-enforce-http-token-imds"range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"2025-01-08T13:16:40Z INFO Number of language-specific files num=02025-01-08T13:16:40Z INFO Detected config files num=2trivy_exitcode=0
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-08T13:28:17Z INFO [vulndb] Need to update DB
2025-01-08T13:28:17Z INFO [vulndb] Downloading vulnerability DB...
2025-01-08T13:28:17Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T13:28:19Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T13:28:19Z INFO [vuln] Vulnerability scanning is enabled
2025-01-08T13:28:19Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-08T13:28:19Z INFO [misconfig] Need to update the built-in checks
2025-01-08T13:28:19Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [---------------------------------------------------------] 100.00% ? p/s 0s2025-01-08T13:28:19Z INFO [secret] Secret scanning is enabled
2025-01-08T13:28:19Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T13:28:19Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-08T13:28:20Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-08T13:28:20Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"
2025-01-08T13:28:20Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.instance.aws_ebs_volume.this" value="cty.NilVal"
2025-01-08T13:28:20Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T13:28:20Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T13:28:20Z INFO [terraform executor] Ignore finding rule="aws-ec2-enforce-http-token-imds" range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"
2025-01-08T13:28:20Z INFO Number of language-specific files num=0
2025-01-08T13:28:20Z INFO Detected config files num=2
trivy_exitcode=0
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_shared
2025-01-08T13:28:21Z INFO [vuln] Vulnerability scanning is enabled
2025-01-08T13:28:21Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-08T13:28:21Z INFO [secret] Secret scanning is enabled
2025-01-08T13:28:21Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T13:28:21Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-08T13:28:22Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-08T13:28:22Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, bastion_sg_id, env_name, environment_config, instance_roles, platform_vars, public_keys, tags"
2025-01-08T13:28:22Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_s3_object.user_public_keys" value="cty.NilVal"
2025-01-08T13:28:23Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="sg.tf:16"
2025-01-08T13:28:23Z INFO Number of language-specific files num=0
2025-01-08T13:28:23Z INFO Detected config files num=4
trivy_exitcode=0
*****************************
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/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: terraform_unused_declarations
4issue(s) found:
Warning: Duplicate key:"datapoints_to_alarm", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:49,9-28 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 55:55:datapoints_to_alarm="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: Duplicate key:"evaluation_periods", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:48,9-27 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 56:56:evaluation_periods="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: `server_type_tag` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 36:36:variable"server_type_tag" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.md
Warning: `database_tag_prefix` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 41:41:variable"database_tag_prefix" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.mdtflint_exitcode=2*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_shared
Excluding the following checks: terraform_unused_declarations
7issue(s) found:
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 10:10:"${module.s3_bucket_oracledb_backups.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 74:74:"${module.s3_bucket_oracledb_backups.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 87:87:"${module.s3_bucket_oracledb_backups_inventory.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 126:126:"${module.s3_bucket_oracle_statistics[0].bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 241:241:values=["${var.account_info.id}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 253:253:values=["${module.s3_bucket_oracledb_backups.bucket.arn}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 294:294:resources=["${module.s3_bucket_oracle_statistics[0].bucket.arn}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.mdtflint_exitcode=4
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-08T13:28:17Z INFO [vulndb] Need to update DB
2025-01-08T13:28:17Z INFO [vulndb] Downloading vulnerability DB...2025-01-08T13:28:17Z INFO [vulndb] Downloading artifact...repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-08T13:28:19Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-08T13:28:19Z INFO [vuln] Vulnerability scanning is enabled
2025-01-08T13:28:19Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-08T13:28:19Z INFO [misconfig] Need to update the built-in checks
2025-01-08T13:28:19Z INFO [misconfig] Downloading the built-in checks...160.80 KiB /160.80 KiB [---------------------------------------------------------] 100.00%? p/s 0s2025-01-08T13:28:19Z INFO [secret] Secret scanning is enabled
2025-01-08T13:28:19Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T13:28:19Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-08T13:28:20Z INFO [terraformscanner] Scanning root module file_path="."2025-01-08T13:28:20Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"2025-01-08T13:28:20Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.instance.aws_ebs_volume.this"value="cty.NilVal"2025-01-08T13:28:20Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-08T13:28:20Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-08T13:28:20Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-enforce-http-token-imds"range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"2025-01-08T13:28:20Z INFO Number of language-specific files num=02025-01-08T13:28:20Z INFO Detected config files num=2trivy_exitcode=0*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_shared
2025-01-08T13:28:21Z INFO [vuln] Vulnerability scanning is enabled
2025-01-08T13:28:21Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-08T13:28:21Z INFO [secret] Secret scanning is enabled
2025-01-08T13:28:21Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T13:28:21Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-08T13:28:22Z INFO [terraformscanner] Scanning root module file_path="."2025-01-08T13:28:22Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, bastion_sg_id, env_name, environment_config, instance_roles, platform_vars, public_keys, tags"2025-01-08T13:28:22Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="aws_s3_object.user_public_keys"value="cty.NilVal"2025-01-08T13:28:23Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-no-public-egress-sgr"range="sg.tf:16"2025-01-08T13:28:23Z INFO Number of language-specific files num=02025-01-08T13:28:23Z INFO Detected config files num=4trivy_exitcode=0
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-08T14:03:12Z INFO [vulndb] Need to update DB
2025-01-08T14:03:12Z INFO [vulndb] Downloading vulnerability DB...
2025-01-08T14:03:12Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T14:03:14Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T14:03:14Z INFO [vuln] Vulnerability scanning is enabled
2025-01-08T14:03:14Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-08T14:03:14Z INFO [misconfig] Need to update the built-in checks
2025-01-08T14:03:14Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [------------------------------------------------------] 100.00% ? p/s 100ms2025-01-08T14:03:16Z INFO [secret] Secret scanning is enabled
2025-01-08T14:03:16Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T14:03:16Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-08T14:03:17Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-08T14:03:17Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"
2025-01-08T14:03:17Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.instance.aws_ebs_volume.this" value="cty.NilVal"
2025-01-08T14:03:17Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T14:03:17Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T14:03:17Z INFO [terraform executor] Ignore finding rule="aws-ec2-enforce-http-token-imds" range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"
2025-01-08T14:03:17Z INFO Number of language-specific files num=0
2025-01-08T14:03:17Z INFO Detected config files num=2
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
*****************************
Running Checkov in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
2025-01-08 14:03:20,259 [MainThread ] [WARNI] Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0:None (for external modules, the --download-external-modules flag is required)
terraform scan results:
Passed checks: 0, Failed checks: 0, Skipped checks: 2
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/delius-core/modules/components/oracle_db_instance
*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: terraform_unused_declarations
4issue(s) found:
Warning: Duplicate key:"datapoints_to_alarm", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:49,9-28 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 55:55:datapoints_to_alarm="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: Duplicate key:"evaluation_periods", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:48,9-27 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 56:56:evaluation_periods="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: `server_type_tag` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 36:36:variable"server_type_tag" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.md
Warning: `database_tag_prefix` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 41:41:variable"database_tag_prefix" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.mdtflint_exitcode=2
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-08T14:03:12Z INFO [vulndb] Need to update DB
2025-01-08T14:03:12Z INFO [vulndb] Downloading vulnerability DB...2025-01-08T14:03:12Z INFO [vulndb] Downloading artifact...repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-08T14:03:14Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-08T14:03:14Z INFO [vuln] Vulnerability scanning is enabled
2025-01-08T14:03:14Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-08T14:03:14Z INFO [misconfig] Need to update the built-in checks
2025-01-08T14:03:14Z INFO [misconfig] Downloading the built-in checks...160.80 KiB /160.80 KiB [------------------------------------------------------] 100.00%? p/s 100ms2025-01-08T14:03:16Z INFO [secret] Secret scanning is enabled
2025-01-08T14:03:16Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T14:03:16Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-08T14:03:17Z INFO [terraformscanner] Scanning root module file_path="."2025-01-08T14:03:17Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"2025-01-08T14:03:17Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.instance.aws_ebs_volume.this"value="cty.NilVal"2025-01-08T14:03:17Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-08T14:03:17Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-08T14:03:17Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-enforce-http-token-imds"range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"2025-01-08T14:03:17Z INFO Number of language-specific files num=02025-01-08T14:03:17Z INFO Detected config files num=2trivy_exitcode=0
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T09:29:18Z INFO [vulndb] Need to update DB
2025-01-09T09:29:18Z INFO [vulndb] Downloading vulnerability DB...
2025-01-09T09:29:18Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T09:29:20Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T09:29:20Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T09:29:20Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T09:29:20Z INFO [misconfig] Need to update the built-in checks
2025-01-09T09:29:20Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [---------------------------------------------------------] 100.00% ? p/s 0s2025-01-09T09:29:21Z INFO [secret] Secret scanning is enabled
2025-01-09T09:29:21Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T09:29:21Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T09:29:22Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T09:29:22Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"
2025-01-09T09:29:22Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.instance.aws_ebs_volume.this" value="cty.NilVal"
2025-01-09T09:29:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T09:29:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T09:29:23Z INFO [terraform executor] Ignore finding rule="aws-ec2-enforce-http-token-imds" range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"
2025-01-09T09:29:23Z INFO Number of language-specific files num=0
2025-01-09T09:29:23Z INFO Detected config files num=2
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
*****************************
Running Checkov in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
2025-01-09 09:29:25,878 [MainThread ] [WARNI] Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0:None (for external modules, the --download-external-modules flag is required)
terraform scan results:
Passed checks: 0, Failed checks: 0, Skipped checks: 2
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/delius-core/modules/components/oracle_db_instance
*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: terraform_unused_declarations
4issue(s) found:
Warning: Duplicate key:"datapoints_to_alarm", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:49,9-28 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 55:55:datapoints_to_alarm="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: Duplicate key:"evaluation_periods", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:48,9-27 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 56:56:evaluation_periods="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: `server_type_tag` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 36:36:variable"server_type_tag" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.md
Warning: `database_tag_prefix` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 41:41:variable"database_tag_prefix" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.mdtflint_exitcode=2
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T09:29:18Z INFO [vulndb] Need to update DB
2025-01-09T09:29:18Z INFO [vulndb] Downloading vulnerability DB...2025-01-09T09:29:18Z INFO [vulndb] Downloading artifact...repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T09:29:20Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T09:29:20Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T09:29:20Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T09:29:20Z INFO [misconfig] Need to update the built-in checks
2025-01-09T09:29:20Z INFO [misconfig] Downloading the built-in checks...160.80 KiB /160.80 KiB [---------------------------------------------------------] 100.00%? p/s 0s2025-01-09T09:29:21Z INFO [secret] Secret scanning is enabled
2025-01-09T09:29:21Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T09:29:21Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T09:29:22Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T09:29:22Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"2025-01-09T09:29:22Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.instance.aws_ebs_volume.this"value="cty.NilVal"2025-01-09T09:29:22Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T09:29:22Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T09:29:23Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-enforce-http-token-imds"range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"2025-01-09T09:29:23Z INFO Number of language-specific files num=02025-01-09T09:29:23Z INFO Detected config files num=2trivy_exitcode=0
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T09:31:35Z INFO [vulndb] Need to update DB
2025-01-09T09:31:35Z INFO [vulndb] Downloading vulnerability DB...
2025-01-09T09:31:35Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T09:31:37Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T09:31:37Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T09:31:37Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T09:31:37Z INFO [misconfig] Need to update the built-in checks
2025-01-09T09:31:37Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [------------------------------------------------------] 100.00% ? p/s 100ms2025-01-09T09:31:38Z INFO [secret] Secret scanning is enabled
2025-01-09T09:31:38Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T09:31:38Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T09:31:39Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T09:31:39Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"
2025-01-09T09:31:39Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.instance.aws_ebs_volume.this" value="cty.NilVal"
2025-01-09T09:31:39Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T09:31:39Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T09:31:39Z INFO [terraform executor] Ignore finding rule="aws-ec2-enforce-http-token-imds" range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"
2025-01-09T09:31:39Z INFO Number of language-specific files num=0
2025-01-09T09:31:39Z INFO Detected config files num=2
trivy_exitcode=0
</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
*****************************
Running Checkov in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
2025-01-09 09:31:42,751 [MainThread ] [WARNI] Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0:None (for external modules, the --download-external-modules flag is required)
terraform scan results:
Passed checks: 0, Failed checks: 0, Skipped checks: 2
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/delius-core/modules/components/oracle_db_instance
*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: terraform_unused_declarations
4issue(s) found:
Warning: Duplicate key:"datapoints_to_alarm", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:49,9-28 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 55:55:datapoints_to_alarm="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: Duplicate key:"evaluation_periods", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:48,9-27 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 56:56:evaluation_periods="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: `server_type_tag` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 36:36:variable"server_type_tag" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.md
Warning: `database_tag_prefix` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 41:41:variable"database_tag_prefix" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.mdtflint_exitcode=2
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T09:31:35Z INFO [vulndb] Need to update DB
2025-01-09T09:31:35Z INFO [vulndb] Downloading vulnerability DB...2025-01-09T09:31:35Z INFO [vulndb] Downloading artifact...repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T09:31:37Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T09:31:37Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T09:31:37Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T09:31:37Z INFO [misconfig] Need to update the built-in checks
2025-01-09T09:31:37Z INFO [misconfig] Downloading the built-in checks...160.80 KiB /160.80 KiB [------------------------------------------------------] 100.00%? p/s 100ms2025-01-09T09:31:38Z INFO [secret] Secret scanning is enabled
2025-01-09T09:31:38Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T09:31:38Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T09:31:39Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T09:31:39Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"2025-01-09T09:31:39Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.instance.aws_ebs_volume.this"value="cty.NilVal"2025-01-09T09:31:39Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T09:31:39Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T09:31:39Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-enforce-http-token-imds"range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"2025-01-09T09:31:39Z INFO Number of language-specific files num=02025-01-09T09:31:39Z INFO Detected config files num=2trivy_exitcode=0
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T10:00:02Z INFO [vulndb] Need to update DB
2025-01-09T10:00:02Z INFO [vulndb] Downloading vulnerability DB...
2025-01-09T10:00:02Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T10:00:05Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T10:00:05Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T10:00:05Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T10:00:05Z INFO [misconfig] Need to update the built-in checks
2025-01-09T10:00:05Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [------------------------------------------------------] 100.00% ? p/s 100ms2025-01-09T10:00:09Z INFO [secret] Secret scanning is enabled
2025-01-09T10:00:09Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T10:00:09Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T10:00:10Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T10:00:10Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"
2025-01-09T10:00:10Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.instance.aws_ebs_volume.this" value="cty.NilVal"
2025-01-09T10:00:10Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T10:00:10Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T10:00:10Z INFO [terraform executor] Ignore finding rule="aws-ec2-enforce-http-token-imds" range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"
2025-01-09T10:00:10Z INFO Number of language-specific files num=0
2025-01-09T10:00:10Z INFO Detected config files num=2
trivy_exitcode=0
</details> #### `Checkov Scan` Failed
<details><summary>Show Output</summary>
```hcl
*****************************
Checkov will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
*****************************
Running Checkov in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
2025-01-09 10:00:12,921 [MainThread ] [WARNI] Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0:None (for external modules, the --download-external-modules flag is required)
terraform scan results:
Passed checks: 0, Failed checks: 1, Skipped checks: 2
Check: CKV2_AWS_23: "Route53 A Record has Attached Resource"
FAILED for resource: aws_route53_record.db_ec2_instance_public
File: /dns.tf:10-17
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-general-policies/ensure-route53-a-record-has-an-attached-resource
10 | resource "aws_route53_record" "db_ec2_instance_public" {
11 | provider = aws.core-vpc
12 | zone_id = var.account_config.route53_external_zone.zone_id
13 | name = var.db_type == "primary" ? "${var.account_info.application_name}-${var.env_name}-${var.db_suffix}-${var.db_count_index}.${var.account_config.dns_suffix}" : "${var.account_info.application_name}-${var.env_name}-${var.db_suffix}-${var.db_count_index + 1}.${var.account_config.dns_suffix}"
14 | type = "A"
15 | ttl = 60
16 | records = [module.instance.aws_instance.private_ip]
17 | }
checkov_exitcode=1
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/delius-core/modules/components/oracle_db_instance
*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: terraform_unused_declarations
4issue(s) found:
Warning: Duplicate key:"datapoints_to_alarm", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:49,9-28 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 55:55:datapoints_to_alarm="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: Duplicate key:"evaluation_periods", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:48,9-27 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 56:56:evaluation_periods="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: `server_type_tag` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 36:36:variable"server_type_tag" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.md
Warning: `database_tag_prefix` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 41:41:variable"database_tag_prefix" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.mdtflint_exitcode=2
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T10:00:02Z INFO [vulndb] Need to update DB
2025-01-09T10:00:02Z INFO [vulndb] Downloading vulnerability DB...2025-01-09T10:00:02Z INFO [vulndb] Downloading artifact...repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T10:00:05Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T10:00:05Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T10:00:05Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T10:00:05Z INFO [misconfig] Need to update the built-in checks
2025-01-09T10:00:05Z INFO [misconfig] Downloading the built-in checks...160.80 KiB /160.80 KiB [------------------------------------------------------] 100.00%? p/s 100ms2025-01-09T10:00:09Z INFO [secret] Secret scanning is enabled
2025-01-09T10:00:09Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T10:00:09Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T10:00:10Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T10:00:10Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"2025-01-09T10:00:10Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.instance.aws_ebs_volume.this"value="cty.NilVal"2025-01-09T10:00:10Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T10:00:10Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T10:00:10Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-enforce-http-token-imds"range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"2025-01-09T10:00:10Z INFO Number of language-specific files num=02025-01-09T10:00:10Z INFO Detected config files num=2trivy_exitcode=0
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T16:21:07Z INFO [vulndb] Need to update DB
2025-01-09T16:21:07Z INFO [vulndb] Downloading vulnerability DB...
2025-01-09T16:21:07Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T16:21:09Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T16:21:09Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T16:21:09Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T16:21:09Z INFO [misconfig] Need to update the built-in checks
2025-01-09T16:21:09Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [---------------------------------------------------------] 100.00% ? p/s 0s2025-01-09T16:21:10Z INFO [secret] Secret scanning is enabled
2025-01-09T16:21:10Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T16:21:10Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T16:21:11Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T16:21:11Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"
2025-01-09T16:21:11Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.instance.aws_ebs_volume.this" value="cty.NilVal"
2025-01-09T16:21:11Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T16:21:11Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T16:21:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-enforce-http-token-imds" range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"
2025-01-09T16:21:11Z INFO Number of language-specific files num=0
2025-01-09T16:21:11Z INFO Detected config files num=2
trivy_exitcode=0
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_shared
2025-01-09T16:21:12Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T16:21:12Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T16:21:12Z INFO [secret] Secret scanning is enabled
2025-01-09T16:21:12Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T16:21:12Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T16:21:13Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T16:21:13Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, bastion_sg_id, env_name, environment_config, instance_roles, platform_vars, public_keys, tags"
2025-01-09T16:21:13Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_s3_object.user_public_keys" value="cty.NilVal"
2025-01-09T16:21:15Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="sg.tf:16"
2025-01-09T16:21:15Z INFO Number of language-specific files num=0
2025-01-09T16:21:15Z INFO Detected config files num=4
trivy_exitcode=0
*****************************
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/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: terraform_unused_declarations
4issue(s) found:
Warning: Duplicate key:"datapoints_to_alarm", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:49,9-28 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 55:55:datapoints_to_alarm="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: Duplicate key:"evaluation_periods", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:48,9-27 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 56:56:evaluation_periods="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: `server_type_tag` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 36:36:variable"server_type_tag" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.md
Warning: `database_tag_prefix` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 41:41:variable"database_tag_prefix" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.mdtflint_exitcode=2*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_shared
Excluding the following checks: terraform_unused_declarations
7issue(s) found:
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 10:10:"${module.s3_bucket_oracledb_backups.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 74:74:"${module.s3_bucket_oracledb_backups.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 87:87:"${module.s3_bucket_oracledb_backups_inventory.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 126:126:"${module.s3_bucket_oracle_statistics[0].bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 241:241:values=["${var.account_info.id}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 253:253:values=["${module.s3_bucket_oracledb_backups.bucket.arn}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 294:294:resources=["${module.s3_bucket_oracle_statistics[0].bucket.arn}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.mdtflint_exitcode=4
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T16:21:07Z INFO [vulndb] Need to update DB
2025-01-09T16:21:07Z INFO [vulndb] Downloading vulnerability DB...2025-01-09T16:21:07Z INFO [vulndb] Downloading artifact...repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T16:21:09Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T16:21:09Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T16:21:09Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T16:21:09Z INFO [misconfig] Need to update the built-in checks
2025-01-09T16:21:09Z INFO [misconfig] Downloading the built-in checks...160.80 KiB /160.80 KiB [---------------------------------------------------------] 100.00%? p/s 0s2025-01-09T16:21:10Z INFO [secret] Secret scanning is enabled
2025-01-09T16:21:10Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T16:21:10Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T16:21:11Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T16:21:11Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"2025-01-09T16:21:11Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.instance.aws_ebs_volume.this"value="cty.NilVal"2025-01-09T16:21:11Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T16:21:11Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T16:21:11Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-enforce-http-token-imds"range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"2025-01-09T16:21:11Z INFO Number of language-specific files num=02025-01-09T16:21:11Z INFO Detected config files num=2trivy_exitcode=0*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_shared
2025-01-09T16:21:12Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T16:21:12Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T16:21:12Z INFO [secret] Secret scanning is enabled
2025-01-09T16:21:12Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T16:21:12Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T16:21:13Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T16:21:13Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, bastion_sg_id, env_name, environment_config, instance_roles, platform_vars, public_keys, tags"2025-01-09T16:21:13Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="aws_s3_object.user_public_keys"value="cty.NilVal"2025-01-09T16:21:15Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-no-public-egress-sgr"range="sg.tf:16"2025-01-09T16:21:15Z INFO Number of language-specific files num=02025-01-09T16:21:15Z INFO Detected config files num=4trivy_exitcode=0
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
terraform/environments/delius-mis
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T16:26:31Z INFO [vulndb] Need to update DB
2025-01-09T16:26:31Z INFO [vulndb] Downloading vulnerability DB...
2025-01-09T16:26:31Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T16:26:34Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T16:26:34Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T16:26:34Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T16:26:34Z INFO [misconfig] Need to update the built-in checks
2025-01-09T16:26:34Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [---------------------------------------------------------] 100.00% ? p/s 0s2025-01-09T16:26:34Z INFO [secret] Secret scanning is enabled
2025-01-09T16:26:34Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T16:26:34Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T16:26:35Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T16:26:35Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"
2025-01-09T16:26:36Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.instance.aws_ebs_volume.this" value="cty.NilVal"
2025-01-09T16:26:36Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T16:26:36Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T16:26:36Z INFO [terraform executor] Ignore finding rule="aws-ec2-enforce-http-token-imds" range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"
2025-01-09T16:26:36Z INFO Number of language-specific files num=0
2025-01-09T16:26:36Z INFO Detected config files num=2
trivy_exitcode=0
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_shared
2025-01-09T16:26:36Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T16:26:36Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T16:26:36Z INFO [secret] Secret scanning is enabled
2025-01-09T16:26:36Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T16:26:36Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T16:26:37Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T16:26:37Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, bastion_sg_id, env_name, environment_config, instance_roles, platform_vars, public_keys, tags"
2025-01-09T16:26:37Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_s3_object.user_public_keys" value="cty.NilVal"
2025-01-09T16:26:39Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="sg.tf:16"
2025-01-09T16:26:39Z INFO Number of language-specific files num=0
2025-01-09T16:26:39Z INFO Detected config files num=4
trivy_exitcode=0
Running Trivy in terraform/environments/delius-mis
2025-01-09T16:26:39Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T16:26:39Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T16:26:39Z INFO [secret] Secret scanning is enabled
2025-01-09T16:26:39Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T16:26:39Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T16:26:40Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T16:26:40Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="networking"
2025-01-09T16:26:41Z INFO Number of language-specific files num=0
2025-01-09T16:26:41Z INFO Detected config files num=1
trivy_exitcode=0
*****************************
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/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
terraform/environments/delius-mis
*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: terraform_unused_declarations
4issue(s) found:
Warning: Duplicate key:"datapoints_to_alarm", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:49,9-28 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 55:55:datapoints_to_alarm="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: Duplicate key:"evaluation_periods", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:48,9-27 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 56:56:evaluation_periods="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: `server_type_tag` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 36:36:variable"server_type_tag" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.md
Warning: `database_tag_prefix` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 41:41:variable"database_tag_prefix" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.mdtflint_exitcode=2*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_shared
Excluding the following checks: terraform_unused_declarations
7issue(s) found:
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 10:10:"${module.s3_bucket_oracledb_backups.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 74:74:"${module.s3_bucket_oracledb_backups.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 87:87:"${module.s3_bucket_oracledb_backups_inventory.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 126:126:"${module.s3_bucket_oracle_statistics[0].bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 241:241:values=["${var.account_info.id}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 253:253:values=["${module.s3_bucket_oracledb_backups.bucket.arn}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 294:294:resources=["${module.s3_bucket_oracle_statistics[0].bucket.arn}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.mdtflint_exitcode=4*****************************
Running tflint in terraform/environments/delius-mis
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=4
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
terraform/environments/delius-mis
*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T16:26:31Z INFO [vulndb] Need to update DB
2025-01-09T16:26:31Z INFO [vulndb] Downloading vulnerability DB...2025-01-09T16:26:31Z INFO [vulndb] Downloading artifact...repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T16:26:34Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T16:26:34Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T16:26:34Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T16:26:34Z INFO [misconfig] Need to update the built-in checks
2025-01-09T16:26:34Z INFO [misconfig] Downloading the built-in checks...160.80 KiB /160.80 KiB [---------------------------------------------------------] 100.00%? p/s 0s2025-01-09T16:26:34Z INFO [secret] Secret scanning is enabled
2025-01-09T16:26:34Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T16:26:34Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T16:26:35Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T16:26:35Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"2025-01-09T16:26:36Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.instance.aws_ebs_volume.this"value="cty.NilVal"2025-01-09T16:26:36Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T16:26:36Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T16:26:36Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-enforce-http-token-imds"range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"2025-01-09T16:26:36Z INFO Number of language-specific files num=02025-01-09T16:26:36Z INFO Detected config files num=2trivy_exitcode=0*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_shared
2025-01-09T16:26:36Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T16:26:36Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T16:26:36Z INFO [secret] Secret scanning is enabled
2025-01-09T16:26:36Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T16:26:36Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T16:26:37Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T16:26:37Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, bastion_sg_id, env_name, environment_config, instance_roles, platform_vars, public_keys, tags"2025-01-09T16:26:37Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="aws_s3_object.user_public_keys"value="cty.NilVal"2025-01-09T16:26:39Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-no-public-egress-sgr"range="sg.tf:16"2025-01-09T16:26:39Z INFO Number of language-specific files num=02025-01-09T16:26:39Z INFO Detected config files num=4trivy_exitcode=0*****************************
Running Trivy in terraform/environments/delius-mis
2025-01-09T16:26:39Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T16:26:39Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T16:26:39Z INFO [secret] Secret scanning is enabled
2025-01-09T16:26:39Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T16:26:39Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T16:26:40Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T16:26:40Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="networking"2025-01-09T16:26:41Z INFO Number of language-specific files num=02025-01-09T16:26:41Z INFO Detected config files num=1trivy_exitcode=0
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
terraform/environments/delius-mis
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T17:03:24Z INFO [vulndb] Need to update DB
2025-01-09T17:03:24Z INFO [vulndb] Downloading vulnerability DB...
2025-01-09T17:03:24Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T17:03:26Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-09T17:03:26Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T17:03:26Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T17:03:26Z INFO [misconfig] Need to update the built-in checks
2025-01-09T17:03:26Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [------------------------------------------------------] 100.00% ? p/s 100ms2025-01-09T17:03:26Z INFO [secret] Secret scanning is enabled
2025-01-09T17:03:26Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T17:03:26Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T17:03:28Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T17:03:28Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"
2025-01-09T17:03:28Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.instance.aws_ebs_volume.this" value="cty.NilVal"
2025-01-09T17:03:28Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T17:03:28Z ERROR [terraform evaluator] Failed to expand dynamic block. block="module.instance.aws_instance.this" err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-09T17:03:28Z INFO [terraform executor] Ignore finding rule="aws-ec2-enforce-http-token-imds" range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"
2025-01-09T17:03:28Z INFO Number of language-specific files num=0
2025-01-09T17:03:28Z INFO Detected config files num=2
trivy_exitcode=0
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_shared
2025-01-09T17:03:28Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T17:03:28Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T17:03:28Z INFO [secret] Secret scanning is enabled
2025-01-09T17:03:28Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T17:03:28Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T17:03:30Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T17:03:30Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="account_config, account_info, bastion_sg_id, env_name, environment_config, instance_roles, platform_vars, public_keys, tags"
2025-01-09T17:03:30Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_s3_object.user_public_keys" value="cty.NilVal"
2025-01-09T17:03:30Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_vpc_security_group_egress_rule.db_ec2_instance_legacy_oracle" value="cty.NilVal"
2025-01-09T17:03:30Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_vpc_security_group_ingress_rule.db_ec2_instance_legacy_oracle" value="cty.NilVal"
2025-01-09T17:03:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="sg.tf:16"
2025-01-09T17:03:34Z INFO Number of language-specific files num=0
2025-01-09T17:03:34Z INFO Detected config files num=4
trivy_exitcode=0
Running Trivy in terraform/environments/delius-mis
2025-01-09T17:03:34Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T17:03:34Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T17:03:34Z INFO [secret] Secret scanning is enabled
2025-01-09T17:03:34Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T17:03:34Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-09T17:03:36Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-09T17:03:36Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="networking"
2025-01-09T17:03:36Z INFO Number of language-specific files num=0
2025-01-09T17:03:36Z INFO Detected config files num=1
trivy_exitcode=0
*****************************
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/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
terraform/environments/delius-mis
*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_instance
Excluding the following checks: terraform_unused_declarations
4issue(s) found:
Warning: Duplicate key:"datapoints_to_alarm", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:49,9-28 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 55:55:datapoints_to_alarm="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: Duplicate key:"evaluation_periods", first defined at terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf:48,9-27 (terraform_map_duplicate_keys)
on terraform/environments/delius-core/modules/components/oracle_db_instance/locals.tf line 56:56:evaluation_periods="10"
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_map_duplicate_keys.md
Warning: `server_type_tag` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 36:36:variable"server_type_tag" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.md
Warning: `database_tag_prefix` variable has no type (terraform_typed_variables)
on terraform/environments/delius-core/modules/components/oracle_db_instance/variables.tf line 41:41:variable"database_tag_prefix" {
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_typed_variables.mdtflint_exitcode=2*****************************
Running tflint in terraform/environments/delius-core/modules/components/oracle_db_shared
Excluding the following checks: terraform_unused_declarations
7issue(s) found:
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 10:10:"${module.s3_bucket_oracledb_backups.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 74:74:"${module.s3_bucket_oracledb_backups.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 87:87:"${module.s3_bucket_oracledb_backups_inventory.bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 126:126:"${module.s3_bucket_oracle_statistics[0].bucket.arn}",
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 241:241:values=["${var.account_info.id}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 253:253:values=["${module.s3_bucket_oracledb_backups.bucket.arn}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.md
Warning: [Fixable] Interpolation-only expressions are deprecated in Terraform v0.12.14 (terraform_deprecated_interpolation)
on terraform/environments/delius-core/modules/components/oracle_db_shared/s3.tf line 294:294:resources=["${module.s3_bucket_oracle_statistics[0].bucket.arn}"]
Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_deprecated_interpolation.mdtflint_exitcode=4*****************************
Running tflint in terraform/environments/delius-mis
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=4
Trivy Scan Success
Show Output
*****************************
Trivy will check the following folders:
terraform/environments/delius-core/modules/components/oracle_db_instance
terraform/environments/delius-core/modules/components/oracle_db_shared
terraform/environments/delius-mis
*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_instance
2025-01-09T17:03:24Z INFO [vulndb] Need to update DB
2025-01-09T17:03:24Z INFO [vulndb] Downloading vulnerability DB...2025-01-09T17:03:24Z INFO [vulndb] Downloading artifact...repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T17:03:26Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"2025-01-09T17:03:26Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T17:03:26Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T17:03:26Z INFO [misconfig] Need to update the built-in checks
2025-01-09T17:03:26Z INFO [misconfig] Downloading the built-in checks...160.80 KiB /160.80 KiB [------------------------------------------------------] 100.00%? p/s 100ms2025-01-09T17:03:26Z INFO [secret] Secret scanning is enabled
2025-01-09T17:03:26Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T17:03:26Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T17:03:28Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T17:03:28Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, availability_zone, db_ami, ebs_volume_config, ebs_volumes, ec2_key_pair_name, env_name, environment_config, instance_profile_policies, security_group_ids, sns_topic_arn, ssh_keys_bucket_name, subnet_id, tags, user_data"2025-01-09T17:03:28Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="module.instance.aws_ebs_volume.this"value="cty.NilVal"2025-01-09T17:03:28Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T17:03:28Z ERROR [terraformevaluator] Failed to expand dynamic block.block="module.instance.aws_instance.this"err="2 errors occurred:\n\t* invalid for-each in aws_instance.this.dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\t* invalid for-each in aws_instance.this.dynamic.ebs_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"2025-01-09T17:03:28Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-enforce-http-token-imds"range="github.com/ministryofjustice/modernisation-platform-terraform-ec2-instance?ref=20622418aa13871c279c12d9ae5e98f29c9a46f0/main.tf:22"2025-01-09T17:03:28Z INFO Number of language-specific files num=02025-01-09T17:03:28Z INFO Detected config files num=2trivy_exitcode=0*****************************
Running Trivy in terraform/environments/delius-core/modules/components/oracle_db_shared
2025-01-09T17:03:28Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T17:03:28Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T17:03:28Z INFO [secret] Secret scanning is enabled
2025-01-09T17:03:28Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T17:03:28Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T17:03:30Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T17:03:30Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="account_config, account_info, bastion_sg_id, env_name, environment_config, instance_roles, platform_vars, public_keys, tags"2025-01-09T17:03:30Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="aws_s3_object.user_public_keys"value="cty.NilVal"2025-01-09T17:03:30Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="aws_vpc_security_group_egress_rule.db_ec2_instance_legacy_oracle"value="cty.NilVal"2025-01-09T17:03:30Z ERROR [terraformevaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.block="aws_vpc_security_group_ingress_rule.db_ec2_instance_legacy_oracle"value="cty.NilVal"2025-01-09T17:03:34Z INFO [terraformexecutor] Ignore finding rule="aws-ec2-no-public-egress-sgr"range="sg.tf:16"2025-01-09T17:03:34Z INFO Number of language-specific files num=02025-01-09T17:03:34Z INFO Detected config files num=4trivy_exitcode=0*****************************
Running Trivy in terraform/environments/delius-mis
2025-01-09T17:03:34Z INFO [vuln] Vulnerability scanning is enabled
2025-01-09T17:03:34Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-09T17:03:34Z INFO [secret] Secret scanning is enabled
2025-01-09T17:03:34Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-09T17:03:34Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection2025-01-09T17:03:36Z INFO [terraformscanner] Scanning root module file_path="."2025-01-09T17:03:36Z WARN [terraformparser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.module="root"variables="networking"2025-01-09T17:03:36Z INFO Number of language-specific files num=02025-01-09T17:03:36Z INFO Detected config files num=1trivy_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.
No description provided.