Skip to content

Conversation

@vamsikumargudala
Copy link
Contributor

@vamsikumargudala vamsikumargudala commented Jul 26, 2025

Fix AWS Provider Lifecycle Filter Warning

Changes proposed in this pull request:

  • Add empty filter {} block to abort-incomplete-multipart-upload lifecycle rule
  • Resolve AWS provider warning about missing filter/prefix attributes
  • Maintain backward compatibility with existing deployments

Error Being Fixed

│ Warning: Invalid Attribute Combination
│ 
│   with module.s3_project.aws_s3_bucket_lifecycle_configuration.private_bucket,
│   on .terraform/modules/s3_document_search/main.tf line 161, in resource "aws_s3_bucket_lifecycle_configuration" "private_bucket":
│  161: resource "aws_s3_bucket_lifecycle_configuration" "private_bucket" {
│ 
│ No attribute specified when one (and only one) of
│ [rule[0].filter,rule[0].prefix] is required
│ 
│ This will be an error in a future version of the provider

@vamsikumargudala
Copy link
Contributor Author

@esacteksab I just saw CI was red because, i belive pre-commit hook terraform-docs-system tries to compile a Go shim and
fails on the runner with the “invalid array length -delta * delta” Go compile error. I switched it to the self-contained terraform-docs-go hook, which ships a pre-built binary. Hope this should unblock the workflow

@esacteksab esacteksab merged commit 93ba662 into trussworks:main Aug 22, 2025
1 check passed
@esacteksab
Copy link
Contributor

Thank you @vamsikumargudala this was published in v9.0.1. Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants