snippetbashTip
pulumi import — Import resources into an existing stack. Read syntax for your cloud provider: <https://www.pulumi.co
Viewed 0 times
importresourcescommandstackcliintoexistingpulumi import
Problem
How to use the
pulumi import command: 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/>.Solution
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}}Code Snippets
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}}Context
tldr-pages: common/pulumi import
Revisions (0)
No revisions yet.