ize terraform
Run terraform
Synopsis
Run terraform command via terraform docker container. By default, terraform runs locally. At the same time, terraform will be downloaded and launched from ~/.ize/versions/terraform/
To use a docker terraform, set value of "docker" to the --prefer-runtime global flag.
ize terraform [flags] <terraform command> [terraform flags]
Examples
# Run terraform init
ize -e dev -p default -r us-east-1 -n hazelops terraform --version 1.0.10 init -input=true
# Run terraform plan via config file
ize --config-file (or -c) /path/to/config terraform plan -out=$(ENV_DIR)/.terraform/tfplan -input=false
# Run terraform init via config file installed from env
export IZE_CONFIG_FILE=/path/to/config
ize terraform init -input=true
# Run terraform in docker
ize -e dev -p default -r us-east-1 -n hazelops --prefer-runtime=docker terraform --version 1.0.10 init -input=true
Options
-h, --help help for terraform
Options inherited from parent commands
-p, --aws-profile string (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set)
-r, --aws-region string (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set)
-c, --config-file string set config file name
-e, --env string (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set)
-l, --log-level string set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default)
-n, --namespace string (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set)
--plain-text-output enable plain text output
--prefer-runtime string set prefer runtime (native, docker or docker-arm64) (default "native")
--terraform-version string set terraform-version
SEE ALSO
- ize -