I installed the ec2 api following the amazon guide. I setted up the access id and secret as environment variable.
Here it is my profile:
expor
This can also be due to an issue depending on which region you're trying to reach. I have a script trying to assume roles in all regions and kept getting this in Hong Kong (ap-east-1). You have to first enable this region in order to access it. You'll get this error for the following regions if you don't have them enabled:
ap-east-1
cn-north-1
cn-northwest-1
us-gov-east-1
us-gov-west-1
Strangely, ap-northeast-3 also gives an error but it's error is OptInRequired.