A command-line utility for copying Terraform module files and customizing their content.
terraform-copy copy [flags]
-b
,--s3-bucket-name
: S3 bucket name (required).-v
,--tf-version
: Version of Terraform (default: "> 1.0").-m
,--module-name
: Module name.-r
,--region
: AWS Region (default: "us-east-1").-s
,--source-dir
: Source directory (required).-t
,--target-dir1
: Target directory 1 (required).-d
,--dry-run
: Enable dry run (default: true).--debug
: Enable debug mode.
terraform-copy copy -b <S3_BUCKET> -m <MODULE_NAME> -s <SOURCE_DIR> -t <TARGET_DIR>
terraform-copy edit -m <MODULE_NAME>
-
Clone the repository.
-
Build the application.
-
Move the binary to your system's
PATH
.
Contributions welcome! Open an issue or create a pull request on GitHub.
- Needs to loop over an AWS Organization and list all accounts
- Filter out accounts
- terraform-exec
- Terraform plan and apply