LinuxCommandLibrary

pulumi-import

Import existing cloud resources into Pulumi

TLDR

Import existing resource

$ pulumi import [type] [name] [id]
copy
Import from file
$ pulumi import -f [resources.json]
copy
Import and generate code
$ pulumi import [type] [name] [id] -o [code.ts]
copy
Import without protecting
$ pulumi import --protect=false [type] [name] [id]
copy

SYNOPSIS

pulumi import [options] type name id

DESCRIPTION

pulumi import imports existing cloud resources into Pulumi state. Generates code to manage the resource. Useful for adopting existing infrastructure under Pulumi management.

PARAMETERS

-f, --file file

Import from JSON file.
-o, --out file
Output generated code.
--protect
Protect imported resources.
--parent urn
Parent resource URN.
-s, --stack name
Target stack.
-y, --yes
Skip confirmation.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community