Ed Merrett
10/01/2024, 10:50 AMsoftware_installers = {
create_bucket = false
}
However I am getting an index error on the terraform plan to destroy the bucket:
│ Error: Invalid index
│
│ on .terraform/modules/fleet/terraform/byo-vpc/byo-db/byo-ecs/iam.tf line 14, in data "aws_iam_policy_document" "software_installers":
│ 14: resources = [aws_s3_bucket.software_installers[0].arn, "${aws_s3_bucket.software_installers[0].arn}/*"]
│ ├────────────────
│ │ aws_s3_bucket.software_installers is empty tuple
│
│ The given key does not identify an element in this collection value: the
│ collection has no elements.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/fleet/terraform/byo-vpc/byo-db/byo-ecs/iam.tf line 14, in data "aws_iam_policy_document" "software_installers":
│ 14: resources = [aws_s3_bucket.software_installers[0].arn, "${aws_s3_bucket.software_installers[0].arn}/*"]
│ ├────────────────
│ │ aws_s3_bucket.software_installers is empty tuple
│
│ The given key does not identify an element in this collection value: the
│ collection has no elements.
Anyone able to support/debug here? I just want to remove the bucket.Harrison
10/01/2024, 5:04 PMEd Merrett
10/01/2024, 5:26 PMfleet.tf
file that declares the fleet_configuration using the fleet moduleEd Merrett
10/01/2024, 5:27 PMmodule "fleet" {
source = "<http://github.com/fleetdm/fleet//terraform?depth=1&ref=fleet-v4.57.1|github.com/fleetdm/fleet//terraform?depth=1&ref=fleet-v4.57.1>"
certificate_arn = data.aws_acm_certificate.fleet_cert.arn
fleet_config = {
image = "fleetdm/fleet:v4.55.1"
# See <https://fleetdm.com/docs/deploy/reference-architectures#aws>
autoscaling = {
min_capacity = 1
max_capacity = 2
...
and so onEd Merrett
10/01/2024, 9:02 PMHarrison
10/01/2024, 10:24 PMHarrison
10/02/2024, 4:02 PM