Once you have the service account key, then you can export an environment
GOOGLE_CREDENTIALS with the path to the JSON file.
See the Google Cloud Provider Terraform documentation
for more information.
Finally, you can create and run your
terraform commands which will
use the service account to create your Google Cloud resources.