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

Bump equip-s3-bucket::modernisation-platform-terraform-s3-bucket from 7.1.0 to 8.2.0 in /terraform/environments/equip #7826

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 18, 2024

Bumps equip-s3-bucket::modernisation-platform-terraform-s3-bucket from 7.1.0 to 8.2.0.

Release notes

Sourced from equip-s3-bucket::modernisation-platform-terraform-s3-bucket's releases.

v8.2.0

What's New

The prior implementation of aws_s3_bucket_logging caused issues where bucket names for logs were strings known only after a terraform apply. This PR moves the logic to use a for_eachwith options to preserve backwards compatibility in the use of var.log_bucket_name. A new variable - var.log_buckets - takes a map of bucket attributes and creates aws_s3_bucket_logging resources for each log bucket.

To reference a bucket from a s3 bucket module in the same tf:

module "s3_with_log_bucket" {
  log_buckets      = tomap({ "main_log_bucket" : module.s3_log_bucket.bucket })
  log_prefix       = "logs/"
}

To refer to another bucket by name:

module "s3_with_log_bucket" { 
  log_bucket       = "log-bucket"
  log_prefix = "logs/"
}

Or multiple buckets by name:

module "s3_with_log_bucket" { 
  log_bucket_names = toset(["log-bucket", "other-log-bucket"])
  log_prefix = "logs/"
}

What's Changed

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [equip-s3-bucket::modernisation-platform-terraform-s3-bucket](https://github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket) from 7.1.0 to 8.2.0.
- [Release notes](https://github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket/releases)
- [Commits](ministryofjustice/modernisation-platform-terraform-s3-bucket@v7.1.0...v8.2.0)

---
updated-dependencies:
- dependency-name: equip-s3-bucket::github::ministryofjustice/modernisation-platform-terraform-s3-bucket::v7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner September 18, 2024 00:41
@dependabot dependabot bot added dependencies Pull requests that update a dependency file terraform Pull requests that update Terraform code labels Sep 18, 2024
@dependabot dependabot bot requested a review from a team as a code owner September 18, 2024 00:41
@github-actions github-actions bot added the environments-repository Used to exclude PRs from this repo in our Slack PR update label Sep 18, 2024
Copy link
Contributor

Trivy Scan Success

Show Output ```hcl

Trivy will check the following folders:
terraform/environments/equip


Running Trivy in terraform/environments/equip
2024-09-18T00:43:30Z INFO [db] Need to update DB
2024-09-18T00:43:30Z INFO [db] Downloading DB... repository="ghcr.io/aquasecurity/trivy-db:2"
2024-09-18T00:43:32Z INFO [vuln] Vulnerability scanning is enabled
2024-09-18T00:43:32Z INFO [misconfig] Misconfiguration scanning is enabled
2024-09-18T00:43:32Z INFO Need to update the built-in policies
2024-09-18T00:43:32Z INFO Downloading the built-in policies...
74.86 KiB / 74.86 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-09-18T00:43:32Z INFO [secret] Secret scanning is enabled
2024-09-18T00:43:32Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-18T00:43:32Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection
2024-09-18T00:43:33Z INFO [terraform scanner] Scanning root module file_path="."
2024-09-18T00:43:33Z WARN [terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly. module="root" variables="networking"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_alb_to_citrix-adc-snip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_alb_to_citrix-adc-vip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_alb_to_ctx_host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_alb_to_equip_host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_alb_to_spotfire_host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_all_hosts_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_all_hosts_to_proxies" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_citrix-adc-mgmt_to_ctx_host" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_citrix-adc-mgmt_to_domain_controllers" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_citrix-adc-mgmt_to_equip" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_citrix-adc-mgmt_to_sf" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_citrix-adc-snip_to_ctx-host" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_citrix-adc-snip_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_citrix-adc-snip_to_equip" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_citrix-adc-snip_to_spotfire" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_citrix-adc-vip_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_ctx_host_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_ctx_host_to_citrix-adc-mgmt" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_ctx_host_to_citrix-adc-snip" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_ctx_host_to_citrix-adc-vip" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_ctx_host_to_equip" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_ctx_host_to_spotfire" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_dns_endpoint_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_domain_controller_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_domain_controller_to_all_hosts_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_domain_controller_to_proxies" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_equip_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_equip_to_SES_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_equip_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_proxy_host_to_citrix-adc-mgmt" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_soc_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_spotfire_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.egress_spotfire_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_alb_to_citrix-adc-snip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_alb_to_citrix-adc-vip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_alb_to_ctx-host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_alb_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_alb_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_azures_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_citrix-adc-mgmt_to_ctx-host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_citrix-adc-mgmt_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_citrix-adc-mgmt_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_citrix-adc-mgmt_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_citrix-adc-snip_to_ctx-host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_citrix-adc-snip_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_citrix-adc-snip_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_citrix-adc-snip_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_citrix-adc-vip_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_ctx-host_to_citrix-adc-snip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_ctx-host_to_citrix-adc-vip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_ctx_host_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_ctx_host_to_citrix-adc-mgmt" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_ctx_hosts_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_ctx_hosts_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_dns_endpoint_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_dns_endpoints_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_domain_controller_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_domain_controller_to_all_hosts_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_domain_controllers_to_proxies_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_equip_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_equip_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_hosts_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_hosts_to_proxies_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_internet_to_alb_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_internet_to_citrix-adc-vip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_proxy_host_to_citrix-adc-mgmt" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_soc_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_spotfire_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="aws_security_group_rule.ingress_spotfire_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.PowerBI_server["COR-A-GW01"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.PowerBI_server["COR-A-GW01"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-CTX01"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-CTX01"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-CTX02"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-CTX02"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-CTX03"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-CTX03"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-DC01"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-DC01"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-DC02"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-DC02"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-PXY01"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-PXY01"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-TST01"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2016_multiple["COR-A-TST01"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2019_SQL_multiple["COR-A-SF02"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2019_SQL_multiple["COR-A-SF02"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2022_STD_multiple["COR-A-EQP04"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2022_STD_multiple["COR-A-EQP04"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2022_STD_multiple["COR-A-EQP05"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z ERROR [terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable. block="module.win2022_STD_multiple["COR-A-EQP05"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-elb-alb-not-public" range="alb.tf:15-38"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:29"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:29"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:29"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="policy.tf:29"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:22-31"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-policy-wildcards" range="iam.tf:29"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-iam-no-user-attached-policies" range="iam.tf:2-8"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-s3-block-public-policy" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-s3-enable-versioning" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-s3-encryption-customer-key" range="s3-awslogs.tf:68-76"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-s3-ignore-public-acls" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-s3-no-public-buckets" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-s3-specify-public-access-block" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-enforce-http-token-imds" range="citrix_adc.tf:56"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="securitygroup.tf:841"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="securitygroup.tf:571-573"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="securitygroup.tf:740"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-ec2-no-public-egress-sgr" range="securitygroup.tf:684"
2024-09-18T00:43:34Z INFO [terraform executor] Ignore finding rule="aws-s3-enable-logging" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z INFO Number of language-specific files num=0
2024-09-18T00:43:34Z INFO Detected config files num=9
trivy_exitcode=0

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

```hcl

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

Checkov will check the following folders:
terraform/environments/equip

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

Running Checkov in terraform/environments/equip
Excluding the following checks: CKV_GIT_1,CKV_AWS_126,CKV2_AWS_38,CKV2_AWS_39
2024-09-18 00:43:36,636 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket?ref=v7.1.0:None (for external modules, the --download-external-modules flag is required)
2024-09-18 00:43:36,636 [MainThread  ] [WARNI]  Failed to download module github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket?ref=v8.2.0:None (for external modules, the --download-external-modules flag is required)
terraform scan results:

Passed checks: 440, Failed checks: 22, Skipped checks: 10

Check: CKV_AWS_356: "Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions"
	FAILED for resource: aws_iam_policy_document.kms_policy
	File: /data.tf:8-83
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-iam-policies/bc-aws-356

		Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_AWS_79: "Ensure Instance Metadata Service Version 1 is not enabled"
	FAILED for resource: module.PowerBI_server.aws_instance.this
	File: /ec2-instance-module/main.tf:6-133
	Calling File: /main.tf:569-595
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-general-policies/bc-aws-general-31

		Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_AWS_79: "Ensure Instance Metadata Service Version 1 is not enabled"
	FAILED for resource: module.win2016_multiple.aws_instance.this
	File: /ec2-instance-module/main.tf:6-133
	Calling File: /main.tf:214-241
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-general-policies/bc-aws-general-31

		Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_AWS_79: "Ensure Instance Metadata Service Version 1 is not enabled"
	FAILED for resource: module.win2019_SQL_multiple.aws_instance.this
	File: /ec2-instance-module/main.tf:6-133
	Calling File: /main.tf:367-395
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-general-policies/bc-aws-general-31

		Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_AWS_79: "Ensure Instance Metadata Service Version 1 is not enabled"
	FAILED for resource: module.win2022_STD_multiple.aws_instance.this
	File: /ec2-instance-module/main.tf:6-133
	Calling File: /main.tf:501-527
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-general-policies/bc-aws-general-31

		Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_AWS_289: "Ensure IAM policies does not allow permissions management / resource exposure without constraints"
	FAILED for resource: aws_iam_policy.citrix_adc_instance_policy
	File: /policy.tf:24-51
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-iam-policies/bc-aws-289

		24 | resource "aws_iam_policy" "citrix_adc_instance_policy" {
		25 |   name        = "citrix_adc_instance_policy"
		26 |   path        = "/"
		27 |   description = "Policy for Citrix NetScaler instance"
		28 |   policy = jsonencode({
		29 |     "Version" : "2012-10-17",
		30 |     "Statement" : [
		31 |       {
		32 |         "Effect" : "Allow",
		33 |         "Action" : [
		34 |           "ec2:DescribeInstances",
		35 |           "ec2:DescribeNetworkInterfaces",
		36 |           "ec2:DetachNetworkInterface",
		37 |           "ec2:AttachNetworkInterface",
		38 |           "ec2:StartInstances",
		39 |           "ec2:StopInstances",
		40 |           "ec2:RebootInstances",
		41 |           "autoscaling:*",
		42 |           "sns:*",
		43 |           "sqs:*",
		44 |           "iam:SimulatePrincipalPolicy",
		45 |           "iam:GetRole"
		46 |         ],
		47 |         "Resource" : "*"
		48 |       }
		49 |     ]
		50 |   })
		51 | }

Check: CKV_AWS_290: "Ensure IAM policies does not allow write access without constraints"
	FAILED for resource: aws_iam_policy.citrix_adc_instance_policy
	File: /policy.tf:24-51
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-iam-policies/bc-aws-290

		24 | resource "aws_iam_policy" "citrix_adc_instance_policy" {
		25 |   name        = "citrix_adc_instance_policy"
		26 |   path        = "/"
		27 |   description = "Policy for Citrix NetScaler instance"
		28 |   policy = jsonencode({
		29 |     "Version" : "2012-10-17",
		30 |     "Statement" : [
		31 |       {
		32 |         "Effect" : "Allow",
		33 |         "Action" : [
		34 |           "ec2:DescribeInstances",
		35 |           "ec2:DescribeNetworkInterfaces",
		36 |           "ec2:DetachNetworkInterface",
		37 |           "ec2:AttachNetworkInterface",
		38 |           "ec2:StartInstances",
		39 |           "ec2:StopInstances",
		40 |           "ec2:RebootInstances",
		41 |           "autoscaling:*",
		42 |           "sns:*",
		43 |           "sqs:*",
		44 |           "iam:SimulatePrincipalPolicy",
		45 |           "iam:GetRole"
		46 |         ],
		47 |         "Resource" : "*"
		48 |       }
		49 |     ]
		50 |   })
		51 | }

Check: CKV_AWS_355: "Ensure no IAM policies documents allow "*" as a statement's resource for restrictable actions"
	FAILED for resource: aws_iam_policy.citrix_adc_instance_policy
	File: /policy.tf:24-51
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-iam-policies/bc-aws-355

		24 | resource "aws_iam_policy" "citrix_adc_instance_policy" {
		25 |   name        = "citrix_adc_instance_policy"
		26 |   path        = "/"
		27 |   description = "Policy for Citrix NetScaler instance"
		28 |   policy = jsonencode({
		29 |     "Version" : "2012-10-17",
		30 |     "Statement" : [
		31 |       {
		32 |         "Effect" : "Allow",
		33 |         "Action" : [
		34 |           "ec2:DescribeInstances",
		35 |           "ec2:DescribeNetworkInterfaces",
		36 |           "ec2:DetachNetworkInterface",
		37 |           "ec2:AttachNetworkInterface",
		38 |           "ec2:StartInstances",
		39 |           "ec2:StopInstances",
		40 |           "ec2:RebootInstances",
		41 |           "autoscaling:*",
		42 |           "sns:*",
		43 |           "sqs:*",
		44 |           "iam:SimulatePrincipalPolicy",
		45 |           "iam:GetRole"
		46 |         ],
		47 |         "Resource" : "*"
		48 |       }
		49 |     ]
		50 |   })
		51 | }

Check: CKV_AWS_300: "Ensure S3 lifecycle configuration sets period for aborting failed uploads"
	FAILED for resource: aws_s3_bucket_lifecycle_configuration.bucket-config
	File: /s3-awslogs.tf:28-60
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-general-policies/bc-aws-300

		28 | resource "aws_s3_bucket_lifecycle_configuration" "bucket-config" {
		29 |   bucket = aws_s3_bucket.this.bucket
		30 | 
		31 |   rule {
		32 |     id = "log_deletion"
		33 | 
		34 |     expiration {
		35 |       days = 90
		36 |     }
		37 | 
		38 |     filter {
		39 |       and {
		40 |         prefix = "AWSLogs/${data.aws_caller_identity.current.account_id}/"
		41 | 
		42 |         tags = {
		43 |           rule      = "log-deletion"
		44 |           autoclean = "true"
		45 |         }
		46 |       }
		47 |     }
		48 |     status = "Enabled"
		49 | 
		50 |     transition {
		51 |       days          = 30
		52 |       storage_class = "STANDARD_IA"
		53 |     }
		54 | 
		55 |     transition {
		56 |       days          = 60
		57 |       storage_class = "GLACIER"
		58 |     }
		59 |   }
		60 | }

Check: CKV_TF_1: "Ensure Terraform module sources use a commit hash"
	FAILED for resource: s3-bucket-ukcloud-replica
	File: /s3-ukcloud-replica.tf:1-54
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/supply-chain-policies/terraform-policies/ensure-terraform-module-sources-use-git-url-with-commit-hash-revision

		Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_TF_1: "Ensure Terraform module sources use a commit hash"
	FAILED for resource: equip-s3-bucket
	File: /s3.tf:1-54
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/supply-chain-policies/terraform-policies/ensure-terraform-module-sources-use-git-url-with-commit-hash-revision

		Code lines for this resource are too many. Please use IDE of your choice to review the file.
Check: CKV_AWS_21: "Ensure all data stored in the S3 bucket have versioning enabled"
	FAILED for resource: aws_s3_bucket.this
	File: /s3-awslogs.tf:11-18
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/s3-policies/s3-16-enable-versioning

		11 | resource "aws_s3_bucket" "this" {
		12 |   bucket_prefix = "moj-alb-citrix-access-logs-bucket"
		13 | 
		14 |   tags = {
		15 |     Environment = "Development"
		16 |     Name        = "S3 Access Logs for ALB"
		17 |   }
		18 | }

Check: CKV_AWS_144: "Ensure that S3 bucket has cross-region replication enabled"
	FAILED for resource: aws_s3_bucket.this
	File: /s3-awslogs.tf:11-18
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-general-policies/ensure-that-s3-bucket-has-cross-region-replication-enabled

		11 | resource "aws_s3_bucket" "this" {
		12 |   bucket_prefix = "moj-alb-citrix-access-logs-bucket"
		13 | 
		14 |   tags = {
		15 |     Environment = "Development"
		16 |     Name        = "S3 Access Logs for ALB"
		17 |   }
		18 | }

Check: CKV_AWS_145: "Ensure that S3 buckets are encrypted with KMS by default"
	FAILED for resource: aws_s3_bucket.this
	File: /s3-awslogs.tf:11-18
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-general-policies/ensure-that-s3-buckets-are-encrypted-with-kms-by-default

		11 | resource "aws_s3_bucket" "this" {
		12 |   bucket_prefix = "moj-alb-citrix-access-logs-bucket"
		13 | 
		14 |   tags = {
		15 |     Environment = "Development"
		16 |     Name        = "S3 Access Logs for ALB"
		17 |   }
		18 | }

Check: CKV2_AWS_62: "Ensure S3 buckets should have event notifications enabled"
	FAILED for resource: aws_s3_bucket.this
	File: /s3-awslogs.tf:11-18
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-logging-policies/bc-aws-2-62

		11 | resource "aws_s3_bucket" "this" {
		12 |   bucket_prefix = "moj-alb-citrix-access-logs-bucket"
		13 | 
		14 |   tags = {
		15 |     Environment = "Development"
		16 |     Name        = "S3 Access Logs for ALB"
		17 |   }
		18 | }

Check: CKV2_AWS_5: "Ensure that Security Groups are attached to another resource"
	FAILED for resource: aws_security_group.azures_ingres
	File: /securitygroup.tf:218-225
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-networking-policies/ensure-that-security-groups-are-attached-to-ec2-instances-or-elastic-network-interfaces-enis

		218 | resource "aws_security_group" "azures_ingres" {
		219 |   name        = lower(format("secg-%s-%s-azures-ingress", local.application_name, local.environment))
		220 |   description = "Security Group for azures ingress connections"
		221 |   vpc_id      = data.aws_vpc.shared.id
		222 |   tags = merge(local.tags,
		223 |     { Name = lower(format("secg-%s-%s-azures-ingress", local.application_name, local.environment)) }
		224 |   )
		225 | }

Check: CKV2_AWS_5: "Ensure that Security Groups are attached to another resource"
	FAILED for resource: aws_security_group.aws_citrix_security_group
	File: /securitygroup.tf:322-329
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-networking-policies/ensure-that-security-groups-are-attached-to-ec2-instances-or-elastic-network-interfaces-enis

		322 | resource "aws_security_group" "aws_citrix_security_group" {
		323 |   name        = "aws_citrix_security_group"
		324 |   description = "Security Group for AWS_Citrix "
		325 |   vpc_id      = data.aws_vpc.shared.id
		326 |   tags = merge(local.tags,
		327 |     { Name = lower(format("secg-%s-%s-citrix-host", local.application_name, local.environment)) }
		328 |   )
		329 | }

Check: CKV2_AWS_5: "Ensure that Security Groups are attached to another resource"
	FAILED for resource: aws_security_group.aws_equip_security_group
	File: /securitygroup.tf:445-452
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-networking-policies/ensure-that-security-groups-are-attached-to-ec2-instances-or-elastic-network-interfaces-enis

		445 | resource "aws_security_group" "aws_equip_security_group" {
		446 |   name        = lower(format("secg-%s-%s-equip", local.application_name, local.environment))
		447 |   description = "Security Group for AWS_Equip"
		448 |   vpc_id      = data.aws_vpc.shared.id
		449 |   tags = merge(local.tags,
		450 |     { Name = lower(format("secg-%s-%s-equip", local.application_name, local.environment)) }
		451 |   )
		452 | }

Check: CKV2_AWS_5: "Ensure that Security Groups are attached to another resource"
	FAILED for resource: aws_security_group.aws_spotfire_security_group
	File: /securitygroup.tf:580-587
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-networking-policies/ensure-that-security-groups-are-attached-to-ec2-instances-or-elastic-network-interfaces-enis

		580 | resource "aws_security_group" "aws_spotfire_security_group" {
		581 |   name        = "aws_spotfire_security_group"
		582 |   description = "Security Group for AWS_SpotFire"
		583 |   vpc_id      = data.aws_vpc.shared.id
		584 |   tags = merge(local.tags,
		585 |     { Name = lower(format("secg-%s-%s-spotfire", local.application_name, local.environment)) }
		586 |   )
		587 | }

Check: CKV2_AWS_5: "Ensure that Security Groups are attached to another resource"
	FAILED for resource: aws_security_group.aws_domain_security_group
	File: /securitygroup.tf:748-755
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-networking-policies/ensure-that-security-groups-are-attached-to-ec2-instances-or-elastic-network-interfaces-enis

		748 | resource "aws_security_group" "aws_domain_security_group" {
		749 |   name        = "aws_domain_security_group"
		750 |   description = "Security Group for AWS_Domain"
		751 |   vpc_id      = data.aws_vpc.shared.id
		752 |   tags = merge(local.tags,
		753 |     { Name = lower(format("secg-%s-%s-domain-controller", local.application_name, local.environment)) }
		754 |   )
		755 | }

Check: CKV2_AWS_28: "Ensure public facing ALB are protected by WAF"
	FAILED for resource: aws_lb.citrix_alb
	File: /alb.tf:15-38
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/aws-networking-policies/ensure-public-facing-alb-are-protected-by-waf

		15 | resource "aws_lb" "citrix_alb" {
		16 | 
		17 |   name               = format("alb-%s-%s-citrix", local.application_name, local.environment)
		18 |   load_balancer_type = "application"
		19 |   security_groups    = [aws_security_group.alb_sg.id]
		20 |   subnets            = [data.aws_subnet.public_subnets_a.id, data.aws_subnet.public_subnets_b.id]
		21 | 
		22 |   enable_deletion_protection = true
		23 |   drop_invalid_header_fields = true
		24 |   enable_waf_fail_open       = true
		25 |   ip_address_type            = "ipv4"
		26 | 
		27 |   tags = merge(local.tags,
		28 |     { Name = format("alb-%s-%s-citrix", local.application_name, local.environment)
		29 |       Role = "Equip public load balancer"
		30 |     }
		31 |   )
		32 | 
		33 |   access_logs {
		34 |     bucket  = aws_s3_bucket.this.id
		35 |     enabled = "true"
		36 |   }
		37 | 
		38 | }

Check: CKV_AWS_18: "Ensure the S3 bucket has access logging enabled"
	FAILED for resource: aws_s3_bucket.this
	File: /s3-awslogs.tf:11-18
	Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/aws-policies/s3-policies/s3-13-enable-logging

		11 | resource "aws_s3_bucket" "this" {
		12 |   bucket_prefix = "moj-alb-citrix-access-logs-bucket"
		13 | 
		14 |   tags = {
		15 |     Environment = "Development"
		16 |     Name        = "S3 Access Logs for ALB"
		17 |   }
		18 | }


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/equip

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

Running tflint in terraform/environments/equip
Excluding the following checks: terraform_unused_declarations
3 issue(s) found:

Warning: Missing version constraint for provider "template" in `required_providers` (terraform_required_providers)

  on terraform/environments/equip/instance_userdata.tf line 1:
   1: data "template_file" "windows-userdata" {

Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_required_providers.md

Warning: Missing version constraint for provider "tls" in `required_providers` (terraform_required_providers)

  on terraform/environments/equip/main.tf line 19:
  19: resource "tls_private_key" "key" {

Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_required_providers.md

Warning: Missing version constraint for provider "random" in `required_providers` (terraform_required_providers)

  on terraform/environments/equip/s3-awslogs.tf line 3:
   3: resource "random_string" "bucket_suffix" {

Reference: https://github.com/terraform-linters/tflint-ruleset-terraform/blob/v0.9.1/docs/rules/terraform_required_providers.md

tflint_exitcode=2

Trivy Scan Success

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

Trivy will check the following folders:
terraform/environments/equip

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

Running Trivy in terraform/environments/equip
2024-09-18T00:43:30Z	INFO	[db] Need to update DB
2024-09-18T00:43:30Z	INFO	[db] Downloading DB...	repository="ghcr.io/aquasecurity/trivy-db:2"
2024-09-18T00:43:32Z	INFO	[vuln] Vulnerability scanning is enabled
2024-09-18T00:43:32Z	INFO	[misconfig] Misconfiguration scanning is enabled
2024-09-18T00:43:32Z	INFO	Need to update the built-in policies
2024-09-18T00:43:32Z	INFO	Downloading the built-in policies...
74.86 KiB / 74.86 KiB [-----------------------------------------------------------] 100.00% ? p/s 0s2024-09-18T00:43:32Z	INFO	[secret] Secret scanning is enabled
2024-09-18T00:43:32Z	INFO	[secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-09-18T00:43:32Z	INFO	[secret] Please see also https://aquasecurity.github.io/trivy/v0.55/docs/scanner/secret#recommendation for faster secret detection
2024-09-18T00:43:33Z	INFO	[terraform scanner] Scanning root module	file_path="."
2024-09-18T00:43:33Z	WARN	[terraform parser] Variable values was not found in the environment or variable files. Evaluating may not work correctly.	module="root" variables="networking"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_alb_to_citrix-adc-snip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_alb_to_citrix-adc-vip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_alb_to_ctx_host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_alb_to_equip_host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_alb_to_spotfire_host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_all_hosts_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_all_hosts_to_proxies" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_citrix-adc-mgmt_to_ctx_host" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_citrix-adc-mgmt_to_domain_controllers" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_citrix-adc-mgmt_to_equip" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_citrix-adc-mgmt_to_sf" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_citrix-adc-snip_to_ctx-host" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_citrix-adc-snip_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_citrix-adc-snip_to_equip" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_citrix-adc-snip_to_spotfire" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_citrix-adc-vip_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_ctx_host_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_ctx_host_to_citrix-adc-mgmt" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_ctx_host_to_citrix-adc-snip" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_ctx_host_to_citrix-adc-vip" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_ctx_host_to_equip" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_ctx_host_to_spotfire" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_dns_endpoint_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_domain_controller_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_domain_controller_to_all_hosts_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_domain_controller_to_proxies" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_equip_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_equip_to_SES_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_equip_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_proxy_host_to_citrix-adc-mgmt" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_soc_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_spotfire_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.egress_spotfire_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_alb_to_citrix-adc-snip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_alb_to_citrix-adc-vip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_alb_to_ctx-host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_alb_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_alb_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_azures_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_citrix-adc-mgmt_to_ctx-host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_citrix-adc-mgmt_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_citrix-adc-mgmt_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_citrix-adc-mgmt_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_citrix-adc-snip_to_ctx-host_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_citrix-adc-snip_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_citrix-adc-snip_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_citrix-adc-snip_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_citrix-adc-vip_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_ctx-host_to_citrix-adc-snip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_ctx-host_to_citrix-adc-vip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_ctx_host_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_ctx_host_to_citrix-adc-mgmt" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_ctx_hosts_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_ctx_hosts_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_dns_endpoint_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_dns_endpoints_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_domain_controller_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_domain_controller_to_all_hosts_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_domain_controllers_to_proxies_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_equip_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_equip_to_spotfire_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_hosts_to_domain_controller_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_hosts_to_proxies_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_internet_to_alb_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_internet_to_citrix-adc-vip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_proxy_host_to_citrix-adc-mgmt" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_soc_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_spotfire_internal_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="aws_security_group_rule.ingress_spotfire_to_equip_traffic" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.PowerBI_server[\"COR-A-GW01\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.PowerBI_server[\"COR-A-GW01\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-CTX01\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-CTX01\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-CTX02\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-CTX02\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-CTX03\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-CTX03\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-DC01\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-DC01\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-DC02\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-DC02\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-PXY01\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-PXY01\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-TST01\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:33Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2016_multiple[\"COR-A-TST01\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2019_SQL_multiple[\"COR-A-SF02\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2019_SQL_multiple[\"COR-A-SF02\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2022_STD_multiple[\"COR-A-EQP04\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2022_STD_multiple[\"COR-A-EQP04\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2022_STD_multiple[\"COR-A-EQP05\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z	ERROR	[terraform evaluator] Failed to expand block. Invalid "for-each" argument. Must be known and iterable.	block="module.win2022_STD_multiple[\"COR-A-EQP05\"].dynamic.capacity_reservation_target" value="cty.NilVal"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:6-133"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enable-at-rest-encryption" range="ec2-instance-module/main.tf:63-74"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-elb-alb-not-public" range="alb.tf:15-38"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:29"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:29"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:29"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:28-50"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="policy.tf:29"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="iam.tf:22-31"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-policy-wildcards" range="iam.tf:29"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-iam-no-user-attached-policies" range="iam.tf:2-8"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-s3-block-public-policy" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-s3-enable-versioning" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-s3-encryption-customer-key" range="s3-awslogs.tf:68-76"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-s3-ignore-public-acls" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-s3-no-public-buckets" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-s3-specify-public-access-block" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-enforce-http-token-imds" range="citrix_adc.tf:56"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="securitygroup.tf:841"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="securitygroup.tf:571-573"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="securitygroup.tf:740"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-ec2-no-public-egress-sgr" range="securitygroup.tf:684"
2024-09-18T00:43:34Z	INFO	[terraform executor] Ignore finding	rule="aws-s3-enable-logging" range="s3-awslogs.tf:11-18"
2024-09-18T00:43:34Z	INFO	Number of language-specific files	num=0
2024-09-18T00:43:34Z	INFO	Detected config files	num=9
trivy_exitcode=0

Copy link
Contributor

github-actions bot commented Nov 4, 2024

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Nov 4, 2024
@github-actions github-actions bot removed the Stale label Nov 17, 2024
@wullub wullub closed this Dec 2, 2024
@wullub wullub deleted the dependabot/terraform/terraform/environments/equip/equip-s3-bucket--github--ministryofjustice/modernisation-platform-terraform-s3-bucket--v7.1.0-8.2.0 branch December 2, 2024 14:34
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 2, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file environments-repository Used to exclude PRs from this repo in our Slack PR update terraform Pull requests that update Terraform code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant