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 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
pulumi(1), pulumi-up(1), pulumi-state(1)
