If you are creating a Google Cloud Platform service account using Terraform, you can also create and save the corresponding JSON credentials file containing the private key using the local_file provider.