terraform-linters / tflint-ruleset-aws

TFLint ruleset for terraform-provider-aws
Mozilla Public License 2.0
327 stars 71 forks source link

Lifecycle hook replace_triggered_by is unsupported #372

Closed starlightromero closed 2 years ago

starlightromero commented 2 years ago

In Terraform 1.2.0 the lifecycle hook replace_triggered_by was introduced. As of tflint-ruleset-aws version 0.16.1, this is an unsupported argument.

Installing `aws` plugin...
Installed `aws` (source: github.com/terraform-linters/tflint-ruleset-aws, version: 0.16.1)
TFLint in terraform/modules/tfe-agent-role/:
Failed to load configurations; main.tf:139,5-25: Unsupported argument; An argument named "replace_triggered_by" is not expected here.:
Error: Unsupported argument
on main.tf line 139, in resource "kubernetes_deployment" "tfc_cloud_agent":
139:     replace_triggered_by = [
An argument named "replace_triggered_by" is not expected here.
starlightromero commented 2 years ago

This is a tflint problem, not an aws ruleset issue