1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [import](<https://delaparra-services.nl/knowledge-hub/import>)

  

Category: Terraform 

# import

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is import?

 

import: Brings an existing real-world resource under Terraform management by writing it into state. ` terraform import ` brings an existing resource under Terraform's management. You write the resource block in your configuration, then import the real object into state, as in ` terraform import aws_s3_bucket.logs my-app-logs `. It is how you adopt infrastructure that was created by hand or by another tool, without deleting and recreating it.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about import

  

### What should you keep in mind with import?

 

After importing, run ` terraform plan `. Any differences between your written configuration and the real resource show up as proposed changes. Adjust the code until the plan shows nothing, so Terraform does not modify the resource unexpectedly. Newer Terraform versions also support ` import ` blocks in configuration, which can be reviewed in a pull request and can even generate the starting configuration for you.

    

### What does an example of import look like?

 

```
terraform import aws_s3_bucket.logs my-app-logs
```

 

## At a glance

   CategoryTerraform Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Terraform terms

 

- [for expression](<https://delaparra-services.nl/knowledge-hub/for-expression>) 
- [for\_each](<https://delaparra-services.nl/knowledge-hub/for-each>) 
- [heredoc](<https://delaparra-services.nl/knowledge-hub/heredoc>) 
- [init](<https://delaparra-services.nl/knowledge-hub/init>) 
- [interpolation](<https://delaparra-services.nl/knowledge-hub/interpolation>) 
- [lifecycle](<https://delaparra-services.nl/knowledge-hub/lifecycle>)

 

[All terms starting with I](<https://delaparra-services.nl/knowledge-hub#letter-i>)

 

## Skills

 

- ### Terraform safe workflow

 

Use when running or changing Terraform (or OpenTofu) - init, fmt, validate, plan, apply, destroy, import, state mv/rm, refresh, workspaces, remote backends, state locking, drift, taint/-replace. Enforces a plan-review-apply workflow and protects state.

 [View skill](<https://delaparra-services.nl/skills/terraform-safe-workflow>) [Download zip](<https://delaparra-services.nl/skills/terraform-safe-workflow/download>) 
- ### Terraform Module Library

 

Build reusable Terraform modules for AWS, Azure, GCP, and OCI infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

 [View skill](<https://delaparra-services.nl/skills/terraform-module-library>) [Download zip](<https://delaparra-services.nl/skills/terraform-module-library/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/import/skills.zip>)

 

## Manuals

 

- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/import)
