cloudposse / terraform-aws-firewall-manager

Terraform module to configure AWS Firewall Manager
https://cloudposse.com/accelerate
Apache License 2.0
17 stars 22 forks source link

Firehose S3 Bucket Replication #19

Open tuxtek opened 2 years ago

tuxtek commented 2 years ago

Found a bug? Maybe our Slack Community can help.

Slack Community

Describe the Bug

Running a terraform plan results in an error.

│ Error: Unsupported attribute │ │ on .terraform/modules/firewall_manager.firehose_s3_bucket/main.tf line 166, in resource "aws_s3_bucket" "default": │ 166: for_each = local.s3_replication_rules == null ? [] : local.s3_replication_rules │ │ This object does not have an attribute named "s3_replication_rules".

Expected Behavior

If this is a required variable, then I would expect to see it defined as such.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Navigate to examples/complete.
  2. Fix typo in main.tf │ Error: Unsupported argument │ │ on main.tf line 22, in module "firewall_manager": │ 22: shiled_advanced_policies = var.shield_advanced_policies │ │ An argument named "shiled_advanced_policies" is not expected here. Did you mean │ "shield_advanced_policies"?
  3. Run terraform plan -var-file=fixtures.us-east-2.tfvars
  4. Get S3 Replication Error Error: Unsupported attribute │ │ on .terraform/modules/firewall_manager.firehose_s3_bucket/main.tf line 166, in resource "aws_s3_bucket" "default": │ 166: for_each = local.s3_replication_rules == null ? [] : local.s3_replication_rules │ │ This object does not have an attribute named "s3_replication_rules".
rameshcreations commented 2 years ago

Any updates on this bug? Any workaround? image