terraform-provider-file/examples/resources/file_local_directory/import.sh

5 lines
239 B
Bash

# IDENTIFIER="$(echo -n "path/to/file" sha256sum | awk '{print $1}')"
terraform import file_local_directory.example "IDENTIFIER"
# after this is run you will need to refine the resource further by setting the path and created properties.