terraform-aws-firewall-manager icon indicating copy to clipboard operation
terraform-aws-firewall-manager copied to clipboard

Firehose S3 Bucket Replication

Open tuxtek opened this issue 2 years ago • 1 comments

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".

tuxtek avatar Feb 22 '22 18:02 tuxtek