terrantula import-terraform

Import Terraform state (alias for import terraform)

Synopsis

terrantula import-terraform [options] [states...]

Arguments

ArgumentDescription
[states]

Options

FlagDescription
--state <uri>Local path, s3://bucket/key, or tfc://org/workspace (repeat for multiple states) (default: ``)
--dir <path>Directory to glob for **/*.tfstate files and discover terragrunt.hcl units for cross-stack dependency edges (composes with --state; all found files are added)
--repo <path>Terraform checkout to read .tf files from — records each root module as a git: source with its declared resources, module structure and cross-stack reads (composes with --state/--dir; nothing is cloned, fetched or planned)
--config <path>RETIRED — the mapping is a catalog declaration now; see terrantula convert mapping-config
--project <id>Project ID (overrides global --project / saved config)
--org <slug>Organization slug (overrides global --org / saved config)
--dry-runPlan only — show changes without applying
--planAlias for --dry-run (terraform-plan muscle memory)
--strictRETIRED — unclaimed sources are reported by GET /reconcile on every import
--allow-duplicatesRETIRED — identity collisions are decided by the declaration, not by a flag
--replacePrune synced entities no longer present in the supplied state (server-side, scoped to each state file's own source)
--tfc-token <token>TFC bearer token; or set TF_TOKEN_app_terraform_io / TFC_TOKEN
--ciRETIRED — an import has no interactive step left
--label <k=v>Default label stamped onto every entity ingested from this source (repeatable; the substrate's own labels win on conflict) (default: [object Object])