Complete the command to import an AWS S3 bucket named 'my-bucket' into Terraform state.
terraform import [1] my-bucket
The correct resource type and name for importing an S3 bucket is aws_s3_bucket.my-bucket.
Complete the command to import an AWS EC2 instance with ID 'i-1234567890abcdef0' into Terraform state.
terraform import [1] i-1234567890abcdef0
The resource type for EC2 instances is aws_instance, so the correct import target is aws_instance.my_ec2.
Fix the error in the import command to correctly import an AWS VPC with ID 'vpc-0a1b2c3d4e5f6g7h8'.
terraform import [1] vpc-0a1b2c3d4e5f6g7h8
The correct resource type for a VPC is aws_vpc. Using aws_vpc.main matches the Terraform resource name.
Fill both blanks to import an AWS IAM role named 'my-role' with ARN 'arn:aws:iam::123456789012:role/my-role'.
terraform import [1] [2]
The import command requires the Terraform resource address aws_iam_role.my-role and the full ARN of the IAM role.
Fill both blanks to import an AWS RDS instance with identifier 'mydbinstance' into Terraform state.
terraform import [1] [2]
The correct resource type is aws_db_instance.mydb and the import ID is the DB instance identifier mydbinstance.