724 B
724 B
AWS resource import helper
This directory provides automation to bulk-import existing AWS resources into Pulumi state. The workflow is:
- Ensure you can access the target account with the AWS CLI.
- Run
./generate_import_spec.pyto createimport-spec.jsonandimport-commands.sh. - Review the generated files and update your Pulumi program with matching logical resource names.
- Execute
./import-commands.shor use the JSON file with your own tooling to perform the imports.
The generated JSON file has the following shape:
{
"resources": [
{"type": "aws:s3/bucket:Bucket", "name": "s3-example", "id": "example"}
]
}
Each entry maps directly to a pulumi import invocation.