terraform import command with sub resources code example Example: terraform import $ terraform import aws_instance.example i-abcd1234