You have to connect to the same AWS region in which your pipeline resides. To find out the pipeline's region:
- Go to the list of pipelines in the AWS Management Console.
- Click the magnifying glass icon for your pipeline. This should open the pipeline's details.
- Find the region in the ARN string. For example,
us-west-2
.
Then, when you connect to AWS, do it like this:
AWS.config({
:access_key_id => 'abc',
:secret_access_key => '123',
:region => 'us-west-2' # Or whatever your region is
})