0.3.1 • Published 7 months ago

move-terraform-resources v0.3.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 months ago

Move Terraform Resources

Features:

  • Move Terraform resources between modules and autogenerate moved blocks.
  • Enforce consistent naming conventions (underscores) for resources and modules.

Usage

# Just fix the naming
❯ npx move-terraform-resources example.tf

# Move resources to a new module and fix the naming
❯ npx move-terraform-resources example.tf --module=foo
Fixed resource references:
-   service_account_id = google_service_account.some-account.account_id
+   service_account_id = google_service_account.some_account.account_id
Fixed resource references:
-   member             = "principalSet://iam.googleapis.com/${google_iam_workload_identity_pool.something-something.name}/attribute.repository/my-github/repository-name"
+   member             = "principalSet://iam.googleapis.com/${google_iam_workload_identity_pool.something_something.name}/attribute.repository/my-github/repository-name"
Written to file: example.underscored.tf
Written to file: example.moved.tf
0.3.1

7 months ago

0.3.0

7 months ago

0.2.1

8 months ago

0.2.0

8 months ago

0.1.3

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago