Importing Existing Infrastructure into Terraform
Most teams adopt Terraform after resources already exist. Recreating them isn't an option, so you import them: tell Terraform that an existing resource belongs to a block in your code. Import blocks # imports.tf import { to = aws_s3_bucket.uploads id = "acme-s...