Interview Prep/Terraform/Rapid-Fire Commands

Import an existing resource, two ways?

IntermediateProductionRapid-Fire Commands
Answer
terraform import aws_s3_bucket.logs acme-logs

or declare it in code (1.5+) and run terraform plan -generate-config-out=gen.tf:

import { to = aws_s3_bucket.logs  id = "acme-logs" }
All Terraform questions

More on Rapid-Fire Commands