Import
OpenTofu can import existing infrastructure resources. This functionality lets you bring existing resources under OpenTofu management.
OpenTofu supports
import
blocks. Unlike the
tofu import
command, you can use
import
blocks to import more than one resource at a time, and you can review imports as part of your normal plan and apply workflow.
Learn more about
import
blocks
.
State Only
OpenTofu expects that each remote object is bound to a single resource address. You should import each remote object to one OpenTofu resource address. If you import the same object multiple times, OpenTofu may exhibit unwanted behavior. See State for more details.