groffcole
groffcole

Reputation: 881

How can I protect an AWS API Gateway endpoint that will be called by a Java application?

Here is what I've got:

Here is my question:

How can I protect the endpoint so that only my Java application can be authorized to call the AWS API Gateway endpoint?

Upvotes: 0

Views: 145

Answers (2)

Victor Kim
Victor Kim

Reputation: 1767

There are a number of ways to protect the API from unauthorized access, e.g. AWS Cognito, IAM roles, custom authorizers, resource policies. But they may appear an overkill for a simple use case (when just one application is authorized to access).

Consider API Keys granting access to your API endpoint - a simple way to control access to your API. Here is how to set it up.

Upvotes: 0

Shivang Agarwal
Shivang Agarwal

Reputation: 1923

You can protect your API from unauthorized access by Turning on the API authentication in your API Gateway & Granting the user access for your API to you IAM users.

AWS API GATEWAY RESOURCE EXPLAINING THE SAME

Upvotes: 2

Related Questions