terraform import throws “Index value required” error for a string key value

As suggested by @JamesK in this answer above is only the solution if you are using Linux or more specifically bash or Git Bash under Windows.

The solution for PowerShell is the following:

terraform import resource[\`"prod-service-reports.audit\`"] ...

Thanks to the answer here 🙂

Leave a Comment

tech