pulumi import <type> <name> <id>

Import resources into an existing stack

Arguments

NameDescription
type
name
id

Options

NameDescription
--color <mode>Colorize output. Choices are: always, never, raw, auto (default "auto")
-C, --cwd <path>Run pulumi as if it had been started in another directory
--disable-integrity-checkingDisable integrity checking of checkpoint files
-e, --emojiEnable emojis in the output
--logflowFlow log settings to child processes (like plugins)
--logtostderrLog to stderr instead of to files
--non-interactiveDisable interactive mode for all commands
--profilingEmit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively
--tracing <file>Emit tracing to the specified endpoint. Use the file: scheme to write tracing data to a local file
-v, --verbose <int>Enable verbose logging (e.g., v=3); anything >3 is very verbose
--config-file <file>Use the configuration values in the specified file rather than detecting the file name
-d, --debugPrint detailed debugging output during resource operations
--diffDisplay operation as a rich diff showing the overall change
-m, --message <message>Optional message to associate with the destroy operation
-p, --parallel <int>Allow P resource operations to run in parallel at once (1 for no parallelism). Defaults to unbounded. (default 2147483647)
-s, --stack <stack-name>The name of the stack to operate on. Defaults to the current stack
-y, --yes
  • Dangerous 💥
-f, --skip-previewDo not perform a preview before performing the destroy
--suppress-permalink <bool>Suppress display of the state permalink
-f, --file <file>The path to a JSON-encoded file containing a list of resources to import
-o, --out <file>The path to the file that will contain the generated resource declarations
--parent <[name=urn]>The name and URN of the parent resource in the format name=urn, where name is the variable name of the parent resource
--protectAllow resources to be imported with protection from deletion enabled (default true)
--provider <[name=urn]>The name and URN of the provider to use for the import in the format name=urn, where name is the variable name for the provider resourceƒ
--suppress-outputsSuppress display of stack outputs (in case they contain sensitive values)