mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 06:15:29 +02:00
pulumi-import: add page (#17180)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
9a0c68c55f
commit
ab8132efd4
1 changed files with 21 additions and 0 deletions
21
pages/common/pulumi-import.md
Normal file
21
pages/common/pulumi-import.md
Normal file
|
@ -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}}`
|
Loading…
Add table
Reference in a new issue