I am getting the 'list of string required' below. I tried replacing /root with ~ without help.
on main.tf line 5, in provider "aws":
│ 5: shared_credentials_files = "/root/.aws/credentials"
│
│ Inappropriate value for attribute "shared_credentials_files": list of string required.