generated from terraform-linters/tflint-ruleset-template
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
The introduction of moved blocks means that we can now statically rename resources.
Here is an example test case of what I'm proposing.
Name: "mixed_snake_case: kebab-case to snake_case",
Content: `
resource "aws_instance" "my-instance" {}`,
Expected: `
resource "aws_instance" "my_instance" {}
# Auto-generated by tflint. Safe to remove after apply.
# https://developer.hashicorp.com/terraform/language/moved
moved {
from = aws_instance.my-instance
to = aws_instance.my_instance
}`,shmokmt
Metadata
Metadata
Assignees
Labels
No labels