Hugo Paredes
Hugo Paredes

Reputation: 53

How to access API Gateway endpoint from another account?

I've an API that should only be accessed from another AWS account. I've followed some AWS documentation and this is what I've done:

When I try to connect signing the requests (using this), it works just fine. But the the request signing requires the AWS access key and secret key. This doesn't sound right to me. What am I doing wrong? Is there another way of doing this without the credentials?

Cheers.

Upvotes: 1

Views: 1277

Answers (1)

max9watt
max9watt

Reputation: 21

When required to provide the access key and secret key, I suppose you need to install the authorising app called Postman (please check out this doc:https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-use-postman-to-call-api.html).

Also, in your step 5, I think if you want to access the api gateway endpoint from an ec2, you have to firstly create a Role within that ec2 account, and then attach the Role to that ec2, finally grant the Role with api gateway permission in your current account.

Upvotes: 1

Related Questions