Error in Accessing AWS GovCloud using Terraform and STS

Hi
We are trying to access AWS GovCloud West using Terraform. I provide the Access Key, Secret Key and Session Token in a Shared Credential File in Windows machine. I specify region as “us-gov-west-1” in the main.tf. I get the following error when I do “terraform plan”.

terraform : [31m
At line:1 char:1

  • terraform plan
  • CategoryInfo : NotSpecified: ([31m:String) , RemoteException
  • FullyQualifiedErrorId : NativeCommandError

[1m[31mError: [0m[0m[1mFailed to instantiate provider “aws” to obtain schema: Unrecognized remote plugin message:
This usually means that the plugin is either invalid or simply
needs to be recompiled to support the latest protocol.[0m
[0m[0m[0m
Releasing state lock. This may take a few moments…