From ab8132efd42baa153ffdc0ebbf0cd25f1aeae9fb Mon Sep 17 00:00:00 2001 From: Daniel Guerrero Date: Mon, 14 Jul 2025 21:54:54 -0300 Subject: [PATCH] pulumi-import: add page (#17180) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/pulumi-import.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/pulumi-import.md diff --git a/pages/common/pulumi-import.md b/pages/common/pulumi-import.md new file mode 100644 index 0000000000..2d23764b4b --- /dev/null +++ b/pages/common/pulumi-import.md @@ -0,0 +1,21 @@ +# pulumi import + +> Import resources into an existing stack. +> Read syntax for your cloud provider: . +> More information: . + +- Generate the resource definition with a given name for an existing provider resource: + +`pulumi import {{type_token}} {{name}} {{id}}` + +- Import an existing AWS user as a `pulumi` resource: + +`pulumi import aws:iam/user:User {{my_user_resource}} {{id}}` + +- Import an existing Cloudflare worker: + +`pulumi import cloudflare:index/workersScript:WorkersScript {{my_worker_script}} {{account_id/script_name}}` + +- Import from a JSON file for bulk import operations and output to a file instead of `stdout`: + +`pulumi import --file {{path/to/file.json}} --out {{path/to/file}}`