Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Add push/pull principals #8879

Merged
merged 2 commits into from
Jan 9, 2025
Merged

🔧 Add push/pull principals #8879

merged 2 commits into from
Jan 9, 2025

Conversation

Gary-H9
Copy link
Contributor

@Gary-H9 Gary-H9 commented Jan 8, 2025

A reference to the issue / Description of it

Add push/pull principals to facilitate the move of a lambda function from one AWS account to another.
Relates to this issue.

How does this PR fix the problem?

Adds the correct push/pull principals for the new AWS account. I'll remove the old ones once this is working.

How has this been tested?

NA

Deployment Plan / Instructions

Allows pulls from another AWS account.

Checklist (check x in [ ] of list items)

  • I have performed a self-review of my own code
  • All checks have passed
  • I have made corresponding changes to the documentation
  • Plan and discussed how it should be deployed to PROD (If needed)

@github-actions github-actions bot added the core label Jan 8, 2025
Copy link
Contributor

github-actions bot commented Jan 8, 2025

Trivy Scan Success

Show Output ```hcl

Trivy will check the following folders:
terraform/environments/core-shared-services


Running Trivy in terraform/environments/core-shared-services
2025-01-08T16:13:45Z INFO [vulndb] Need to update DB
2025-01-08T16:13:45Z INFO [vulndb] Downloading vulnerability DB...
2025-01-08T16:13:45Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T16:13:47Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T16:13:47Z INFO [vuln] Vulnerability scanning is enabled
2025-01-08T16:13:47Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-08T16:13:47Z INFO [misconfig] Need to update the built-in checks
2025-01-08T16:13:47Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [------------------------------------------------------] 100.00% ? p/s 100ms2025-01-08T16:13:47Z INFO [secret] Secret scanning is enabled
2025-01-08T16:13:47Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T16:13:47Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-08T16:13:49Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_subnet.live-data-additional" value="cty.NilVal"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_vpc_endpoint_route_table_association.vpc_gateway_endpoints" value="cty.NilVal"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group.image_builder_security_group" value="cty.NilVal"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group.interface_endpoint_security_group" value="cty.NilVal"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.image_builder_egress_443" value="cty.NilVal"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.image_builder_egress_80" value="cty.NilVal"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.interface_endpoint-security_group_rule" value="cty.NilVal"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-dc-a"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-dc-a"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-dc-b"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-dc-b"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-rdlic"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-rdlic"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-hmpp-rdlic"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-hmpp-rdlic"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-live-data"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-live-data"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-non-live-data"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-non-live-data"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-hmpp-root"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-hmpp-root"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-noms-root"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-noms-root"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-infra-int"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-infra-int"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-dc-a"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-dc-a"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-dc-b"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-dc-b"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-rdlic"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-rdlic"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-hmpp-rdlic"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-hmpp-rdlic"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-live-data"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-live-data"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-non-live-data"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-non-live-data"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-hmpp-root"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-hmpp-root"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-noms-root"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-noms-root"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-infra-int"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-infra-int"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:14:02Z ERROR [terraform evaluator] Failed to load module. Maybe try 'terraform init'? err="open terraform/modules/ip_addresses: no such file or directory"
2025-01-08T16:14:09Z INFO [terraform scanner] Scanning root module file_path="test/test_terraform"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:84"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:84"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:96"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:96"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:111"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:111"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:123"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:123"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:135"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:135"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-sns-enable-topic-encryption" range="instance-scheduler-lambda-function.tf:84-87"
2025-01-08T16:14:11Z INFO [terraform executor] Ignore finding rule="aws-sns-enable-topic-encryption" range="instance-scheduler-lambda-function.tf:90-93"
2025-01-08T16:14:11Z INFO Number of language-specific files num=1
2025-01-08T16:14:11Z INFO [gomod] Detecting vulnerabilities...
2025-01-08T16:14:11Z INFO Detected config files num=6
trivy_exitcode=0

</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>

```hcl

*****************************

Checkov will check the following folders:
terraform/environments/core-shared-services

*****************************

Running Checkov in terraform/environments/core-shared-services
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
2025-01-08 16:14:13,546 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-environments//terraform/modules/ip_addresses?ref=29c48e315aa5eeef5d604617169b2f6db953966e:None (for external modules, the --download-external-modules flag is required)
2025-01-08 16:14:13,547 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-ssm-patching.git?ref=d1be56ad6bceeee3fb0a1beb9ad0d61ea07d0259:None (for external modules, the --download-external-modules flag is required)
2025-01-08 16:14:13,547 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-lambda-function?ref=5a3c02a071519986a0ae415168fb4f9d3fb7970f:None (for external modules, the --download-external-modules flag is required)
2025-01-08 16:14:13,547 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-pagerduty-integration?ref=0179859e6fafc567843cd55c0b05d325d5012dc4:None (for external modules, the --download-external-modules flag is required)
2025-01-08 16:14:13,547 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket?ref=8688bc15a08fbf5a4f4eef9b7433c5a417df8df1:None (for external modules, the --download-external-modules flag is required)
2025-01-08 16:14:13,547 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-github-oidc-provider?ref=82f546bd5f002674138a2ccdade7d7618c6758b3:None (for external modules, the --download-external-modules flag is required)
2025-01-08 16:14:13,547 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-cross-account-access?ref=6819b090bce6d3068d55c7c7b9b3fd18c9dca648:None (for external modules, the --download-external-modules flag is required)
2025-01-08 16:14:13,547 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/terraform-aws-observability-platform-tenant?ref=fbbe5c8282786bcc0a00c969fe598e14f12eea9b:None (for external modules, the --download-external-modules flag is required)
terraform scan results:

Passed checks: 1265, Failed checks: 0, Skipped checks: 250


checkov_exitcode=0

CTFLint Scan Success

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.9.1)
tflint will check the following folders:
terraform/environments/core-shared-services

*****************************

Running tflint in terraform/environments/core-shared-services
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=0

Trivy Scan Success

Show Output
*****************************

Trivy will check the following folders:
terraform/environments/core-shared-services

*****************************

Running Trivy in terraform/environments/core-shared-services
2025-01-08T16:13:45Z	INFO	[vulndb] Need to update DB
2025-01-08T16:13:45Z	INFO	[vulndb] Downloading vulnerability DB...
2025-01-08T16:13:45Z	INFO	[vulndb] Downloading artifact...	repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T16:13:47Z	INFO	[vulndb] Artifact successfully downloaded	repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T16:13:47Z	INFO	[vuln] Vulnerability scanning is enabled
2025-01-08T16:13:47Z	INFO	[misconfig] Misconfiguration scanning is enabled
2025-01-08T16:13:47Z	INFO	[misconfig] Need to update the built-in checks
2025-01-08T16:13:47Z	INFO	[misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [------------------------------------------------------] 100.00% ? p/s 100ms2025-01-08T16:13:47Z	INFO	[secret] Secret scanning is enabled
2025-01-08T16:13:47Z	INFO	[secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T16:13:47Z	INFO	[secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-08T16:13:49Z	INFO	[terraform scanner] Scanning root module	file_path="."
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_subnet.live-data-additional" value="cty.NilVal"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_vpc_endpoint_route_table_association.vpc_gateway_endpoints" value="cty.NilVal"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group.image_builder_security_group" value="cty.NilVal"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group.interface_endpoint_security_group" value="cty.NilVal"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.image_builder_egress_443" value="cty.NilVal"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.image_builder_egress_80" value="cty.NilVal"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.interface_endpoint-security_group_rule" value="cty.NilVal"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-dc-a\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-dc-a\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-dc-b\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-dc-b\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-rdlic\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-rdlic\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-hmpp-rdlic\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-hmpp-rdlic\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-live-data\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-live-data\"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-non-live-data\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-non-live-data\"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-hmpp-root\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-hmpp-root\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-noms-root\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-noms-root\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-infra-int\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-infra-int\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-dc-a\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-dc-a\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-dc-b\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-dc-b\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-rdlic\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-rdlic\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-hmpp-rdlic\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-hmpp-rdlic\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-live-data\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-live-data\"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-non-live-data\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-non-live-data\"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-hmpp-root\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-hmpp-root\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-noms-root\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-noms-root\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:13:50Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-infra-int\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-infra-int\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T16:14:02Z	ERROR	[terraform evaluator] Failed to load module. Maybe try 'terraform init'?	err="open terraform/modules/ip_addresses: no such file or directory"
2025-01-08T16:14:09Z	INFO	[terraform scanner] Scanning root module	file_path="test/test_terraform"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:84"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:84"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:96"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:96"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:111"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:111"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:123"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:123"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:135"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:135"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-sns-enable-topic-encryption" range="instance-scheduler-lambda-function.tf:84-87"
2025-01-08T16:14:11Z	INFO	[terraform executor] Ignore finding	rule="aws-sns-enable-topic-encryption" range="instance-scheduler-lambda-function.tf:90-93"
2025-01-08T16:14:11Z	INFO	Number of language-specific files	num=1
2025-01-08T16:14:11Z	INFO	[gomod] Detecting vulnerabilities...
2025-01-08T16:14:11Z	INFO	Detected config files	num=6
trivy_exitcode=0

Copy link
Contributor

github-actions bot commented Jan 8, 2025

Terraform Plan Summary

core-shared-services-production
Plan: 0 to add, 2 to change, 0 to destroy.

@Gary-H9 Gary-H9 marked this pull request as ready for review January 8, 2025 17:45
@Gary-H9 Gary-H9 requested a review from a team as a code owner January 8, 2025 17:45
Copy link
Contributor

github-actions bot commented Jan 8, 2025

Trivy Scan Success

Show Output ```hcl

Trivy will check the following folders:
terraform/environments/core-shared-services


Running Trivy in terraform/environments/core-shared-services
2025-01-08T18:00:07Z INFO [vulndb] Need to update DB
2025-01-08T18:00:07Z INFO [vulndb] Downloading vulnerability DB...
2025-01-08T18:00:07Z INFO [vulndb] Downloading artifact... repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T18:00:10Z INFO [vulndb] Artifact successfully downloaded repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T18:00:10Z INFO [vuln] Vulnerability scanning is enabled
2025-01-08T18:00:10Z INFO [misconfig] Misconfiguration scanning is enabled
2025-01-08T18:00:10Z INFO [misconfig] Need to update the built-in checks
2025-01-08T18:00:10Z INFO [misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [------------------------------------------------------] 100.00% ? p/s 100ms2025-01-08T18:00:21Z INFO [secret] Secret scanning is enabled
2025-01-08T18:00:21Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T18:00:21Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-08T18:00:22Z INFO [terraform scanner] Scanning root module file_path="."
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_subnet.live-data-additional" value="cty.NilVal"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_vpc_endpoint_route_table_association.vpc_gateway_endpoints" value="cty.NilVal"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group.image_builder_security_group" value="cty.NilVal"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group.interface_endpoint_security_group" value="cty.NilVal"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.image_builder_egress_443" value="cty.NilVal"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.image_builder_egress_80" value="cty.NilVal"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.interface_endpoint-security_group_rule" value="cty.NilVal"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-dc-a"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-dc-a"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-dc-b"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-dc-b"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-rdlic"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-rdlic"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-hmpp-rdlic"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-hmpp-rdlic"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-live-data"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-live-data"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-non-live-data"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-non-live-data"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-hmpp-root"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-hmpp-root"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-noms-root"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-noms-root"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-infra-int"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-infra-int"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-dc-a"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-dc-a"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-dc-b"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-dc-b"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-azure-rdlic"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-azure-rdlic"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_instance.ad_fixngo["ad-hmpp-rdlic"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo["ad-hmpp-rdlic"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-live-data"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-live-data"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-non-live-data"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo["ad-fixngo-non-live-data"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-hmpp-root"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-hmpp-root"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-noms-root"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-azure-noms-root"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z ERROR [terraform evaluator] Failed to expand dynamic block. block="aws_route53_resolver_rule.ad_fixngo["ad-fixngo-infra-int"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo["ad-fixngo-infra-int"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:38Z ERROR [terraform evaluator] Failed to load module. Maybe try 'terraform init'? err="open terraform/modules/ip_addresses: no such file or directory"
2025-01-08T18:00:47Z INFO [terraform scanner] Scanning root module file_path="test/test_terraform"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:84"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:84"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:96"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:96"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:111"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:111"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:123"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:123"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:135"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:135"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-sns-enable-topic-encryption" range="instance-scheduler-lambda-function.tf:84-87"
2025-01-08T18:00:49Z INFO [terraform executor] Ignore finding rule="aws-sns-enable-topic-encryption" range="instance-scheduler-lambda-function.tf:90-93"
2025-01-08T18:00:50Z INFO Number of language-specific files num=1
2025-01-08T18:00:50Z INFO [gomod] Detecting vulnerabilities...
2025-01-08T18:00:50Z INFO Detected config files num=6
trivy_exitcode=0

</details> #### `Checkov Scan` Success
<details><summary>Show Output</summary>

```hcl

*****************************

Checkov will check the following folders:
terraform/environments/core-shared-services

*****************************

Running Checkov in terraform/environments/core-shared-services
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
2025-01-08 18:00:53,268 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-environments//terraform/modules/ip_addresses?ref=29c48e315aa5eeef5d604617169b2f6db953966e:None (for external modules, the --download-external-modules flag is required)
2025-01-08 18:00:53,269 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-ssm-patching.git?ref=d1be56ad6bceeee3fb0a1beb9ad0d61ea07d0259:None (for external modules, the --download-external-modules flag is required)
2025-01-08 18:00:53,269 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-lambda-function?ref=5a3c02a071519986a0ae415168fb4f9d3fb7970f:None (for external modules, the --download-external-modules flag is required)
2025-01-08 18:00:53,269 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-pagerduty-integration?ref=0179859e6fafc567843cd55c0b05d325d5012dc4:None (for external modules, the --download-external-modules flag is required)
2025-01-08 18:00:53,269 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket?ref=8688bc15a08fbf5a4f4eef9b7433c5a417df8df1:None (for external modules, the --download-external-modules flag is required)
2025-01-08 18:00:53,269 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-github-oidc-provider?ref=82f546bd5f002674138a2ccdade7d7618c6758b3:None (for external modules, the --download-external-modules flag is required)
2025-01-08 18:00:53,269 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-cross-account-access?ref=6819b090bce6d3068d55c7c7b9b3fd18c9dca648:None (for external modules, the --download-external-modules flag is required)
2025-01-08 18:00:53,269 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/terraform-aws-observability-platform-tenant?ref=fbbe5c8282786bcc0a00c969fe598e14f12eea9b:None (for external modules, the --download-external-modules flag is required)
terraform scan results:

Passed checks: 1265, Failed checks: 0, Skipped checks: 250


checkov_exitcode=0

CTFLint Scan Success

Show Output
*****************************

Setting default tflint config...
Running tflint --init...
Installing "terraform" plugin...
Installed "terraform" (source: github.com/terraform-linters/tflint-ruleset-terraform, version: 0.9.1)
tflint will check the following folders:
terraform/environments/core-shared-services

*****************************

Running tflint in terraform/environments/core-shared-services
Excluding the following checks: terraform_unused_declarations
tflint_exitcode=0

Trivy Scan Success

Show Output
*****************************

Trivy will check the following folders:
terraform/environments/core-shared-services

*****************************

Running Trivy in terraform/environments/core-shared-services
2025-01-08T18:00:07Z	INFO	[vulndb] Need to update DB
2025-01-08T18:00:07Z	INFO	[vulndb] Downloading vulnerability DB...
2025-01-08T18:00:07Z	INFO	[vulndb] Downloading artifact...	repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T18:00:10Z	INFO	[vulndb] Artifact successfully downloaded	repo="public.ecr.aws/aquasecurity/trivy-db:2"
2025-01-08T18:00:10Z	INFO	[vuln] Vulnerability scanning is enabled
2025-01-08T18:00:10Z	INFO	[misconfig] Misconfiguration scanning is enabled
2025-01-08T18:00:10Z	INFO	[misconfig] Need to update the built-in checks
2025-01-08T18:00:10Z	INFO	[misconfig] Downloading the built-in checks...
160.80 KiB / 160.80 KiB [------------------------------------------------------] 100.00% ? p/s 100ms2025-01-08T18:00:21Z	INFO	[secret] Secret scanning is enabled
2025-01-08T18:00:21Z	INFO	[secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2025-01-08T18:00:21Z	INFO	[secret] Please see also https://aquasecurity.github.io/trivy/v0.57/docs/scanner/secret#recommendation for faster secret detection
2025-01-08T18:00:22Z	INFO	[terraform scanner] Scanning root module	file_path="."
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_subnet.live-data-additional" value="cty.NilVal"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_vpc_endpoint_route_table_association.vpc_gateway_endpoints" value="cty.NilVal"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group.image_builder_security_group" value="cty.NilVal"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group.interface_endpoint_security_group" value="cty.NilVal"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.image_builder_egress_443" value="cty.NilVal"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.image_builder_egress_80" value="cty.NilVal"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.interface_endpoint-security_group_rule" value="cty.NilVal"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-dc-a\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-dc-a\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-dc-b\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-dc-b\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-rdlic\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-rdlic\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-hmpp-rdlic\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-hmpp-rdlic\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-live-data\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-live-data\"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-non-live-data\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-non-live-data\"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-hmpp-root\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-hmpp-root\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-noms-root\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-noms-root\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-infra-int\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-infra-int\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-dc-a\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-dc-a\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-dc-b\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-dc-b\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-azure-rdlic\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-azure-rdlic\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_instance.ad_fixngo[\"ad-hmpp-rdlic\"]" err="1 error occurred:\n\t* invalid for-each in aws_instance.ad_fixngo[\"ad-hmpp-rdlic\"].dynamic.ephemeral_block_device block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-live-data\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-live-data\"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-non-live-data\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_endpoint.ad_fixngo[\"ad-fixngo-non-live-data\"].dynamic.ip_address block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-hmpp-root\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-hmpp-root\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-noms-root\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-azure-noms-root\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:22Z	ERROR	[terraform evaluator] Failed to expand dynamic block.	block="aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-infra-int\"]" err="1 error occurred:\n\t* invalid for-each in aws_route53_resolver_rule.ad_fixngo[\"ad-fixngo-infra-int\"].dynamic.target_ip block: cannot use a cty.NilVal value in for_each. An iterable collection is required\n\n"
2025-01-08T18:00:38Z	ERROR	[terraform evaluator] Failed to load module. Maybe try 'terraform init'?	err="open terraform/modules/ip_addresses: no such file or directory"
2025-01-08T18:00:47Z	INFO	[terraform scanner] Scanning root module	file_path="test/test_terraform"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="ad-fixngo.tf:1075"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:84"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:84"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:96"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:96"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:111"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:111"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:123"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:123"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:135"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-excessive-port-access" range="vpc_additional_cidr.tf:135"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-ecr-repository-customer-key" range="../../modules/app-ecr-repo/main.tf:7-9"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-sns-enable-topic-encryption" range="instance-scheduler-lambda-function.tf:84-87"
2025-01-08T18:00:49Z	INFO	[terraform executor] Ignore finding	rule="aws-sns-enable-topic-encryption" range="instance-scheduler-lambda-function.tf:90-93"
2025-01-08T18:00:50Z	INFO	Number of language-specific files	num=1
2025-01-08T18:00:50Z	INFO	[gomod] Detecting vulnerabilities...
2025-01-08T18:00:50Z	INFO	Detected config files	num=6
trivy_exitcode=0

Copy link
Contributor

github-actions bot commented Jan 8, 2025

Terraform Plan Summary

core-shared-services-production
Plan: 0 to add, 2 to change, 0 to destroy.

@Gary-H9 Gary-H9 added this pull request to the merge queue Jan 9, 2025
Merged via the queue into main with commit e7698ee Jan 9, 2025
5 checks passed
@Gary-H9 Gary-H9 deleted the jml-repo-add branch January 9, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants