Skip to content

Commit ab8132e

Browse files
pulumi-import: add page (#17180)
Co-authored-by: Sebastiaan Speck <[email protected]>
1 parent 9a0c68c commit ab8132e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

pages/common/pulumi-import.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# pulumi import
2+
3+
> Import resources into an existing stack.
4+
> Read syntax for your cloud provider: <https://www.pulumi.com/registry/>.
5+
> More information: <https://www.pulumi.com/docs/iac/cli/commands/pulumi_import/>.
6+
7+
- Generate the resource definition with a given name for an existing provider resource:
8+
9+
`pulumi import {{type_token}} {{name}} {{id}}`
10+
11+
- Import an existing AWS user as a `pulumi` resource:
12+
13+
`pulumi import aws:iam/user:User {{my_user_resource}} {{id}}`
14+
15+
- Import an existing Cloudflare worker:
16+
17+
`pulumi import cloudflare:index/workersScript:WorkersScript {{my_worker_script}} {{account_id/script_name}}`
18+
19+
- Import from a JSON file for bulk import operations and output to a file instead of `stdout`:
20+
21+
`pulumi import --file {{path/to/file.json}} --out {{path/to/file}}`

0 commit comments

Comments
 (0)