Migrate Artifactory repository resources from V5 to V6
masterThe tf-v5-migrator is a CLI tool designed to transform Artifactory Terraform repository resources. It converts generic repository types used in version 5 of the provider into the package-specific types required in version 6.
The tool performs two main functions:
- Code Transformation: It parses input Terraform configuration files and generates new files where V5 resources are replaced with their V6 equivalents.
- State Import Generation: It can generate
terraform importcommands for the migrated resources to facilitate the migration of existing Terraform state.
# Basic transformation
tf-v5-migrator --input sample.v5.tf --output sample.v6.tf
# Transformation with import command generation
tf-v5-migrator --input sample.v5.tf --output sample.v6.tf --import