How to handle terraform imports?

How would you handle terraform imports with Terraspace? Or would you just handle it the normal way?
For example, TS_ENV=dev terraform import <resource> <physical resource key>

Terraspace does not support the import command yet. You can do this though:

terraspace build demo
cd .terraspace-cache/us-west-2/dev/stacks/demo
terraform terraform import

Somewhat relevant:

Also covered here:

1 Like

The terraspace import command was added by this PR

:tada:

1 Like