Terraform 1 · State

Import an existing resource

Bring a resource that already exists under Terraform's management, here an S3 bucket.

terraform import aws_s3_bucket.logs my-log-bucket

Official Terraform 1 documentation

More state commands

All state commands · Terraform 1 cheatsheet

Was this page helpful?