Skip to content

pulumi-import: add page #17180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions pages/common/pulumi-import.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# pulumi import

> Import resources into an existing stack.
> Read syntax for your cloud provider: <https://www.pulumi.com/registry/>.
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_import/>.

- 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}}`