Skip to content

WarningAsErrors does not work for deprecation warnings from Terraform #1549

@hogarth-sv

Description

@hogarth-sv

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions