pulumi-import
Import existing cloud resources into Pulumi
TLDR
Import existing resource
$ pulumi import [type] [name] [id]
Import from file$ pulumi import -f [resources.json]
Import and generate code$ pulumi import [type] [name] [id] -o [code.ts]
Import without protecting$ pulumi import --protect=false [type] [name] [id]
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 resources from a JSON file.-o, --out file
Output generated code to file.--protect
Protect imported resources (default: true).--generate-code
Generate code for imported resources (default: true).--parent urn
Parent resource URN.--provider urn
Provider resource URN.-s, --stack name
Target stack.-p, --parallel n
Allow P resource operations to run in parallel.-y, --yes
Skip confirmation prompts.-m, --message msg
Optional message for the update operation.--from converter
Invoke a converter to import resources.-d, --debug
Enable debug logging.-j, --json
Emit output as JSON.
SEE ALSO
pulumi(1), pulumi-up(1), pulumi-state(1)

