Skip to content

WarningAsErrors does not work for deprecation warnings from Terraform #1549

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

Open
hogarth-sv opened this issue Apr 30, 2025 · 0 comments · May be fixed by #1550
Open

WarningAsErrors does not work for deprecation warnings from Terraform #1549

hogarth-sv opened this issue Apr 30, 2025 · 0 comments · May be fixed by #1550
Assignees
Labels
bug Something isn't working

Comments

@hogarth-sv
Copy link

Describe the bug
Have terraform that includes a deprecated behaviour (eg server_side_encryption_configuration within an S3 bucket or variable interpolation which is not required)

To Reproduce
Run a terratest against this with WarningsAsErrors: map[string]string{".*deprecated.*": "Fix the deprecation shown in the log."}, in the terraformOptions configuration.

Expected behavior
The test to fail with the warning picked up as an error.

Versions

  • Terratest version: github.com/gruntwork-io/terratest v0.48.2
  • Environment details (Ubuntu 20.04, Windows 10, etc.): golang:alpine container
@hogarth-sv hogarth-sv added the bug Something isn't working label Apr 30, 2025
@james03160927 james03160927 self-assigned this Apr 30, 2025
@james03160927 james03160927 linked a pull request May 6, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants