Skip to content

AWS API Gateway Mock Integration Cost/Risk

0

What use is the mock integration and does it cost if there are responses etc? Just curious if it is a security risk with having these mock integrations as unauthorised and if they can be abused similar to other endpoints.

1 Answer
1
Accepted Answer

Mock integrations are just like any other integration, with the difference that they return a fixed value and do not actually invoke a backend. They can be used for testing your API, but for other things as redirecting one endpoint to another.

You should protect it as you protect any other endpoint. There are cases when you need to protect and others when you do not. It depends on the specific use case.

Mock integrations cost the same as any other endpoint (from API Gateway's point of view), but there is no additional cost for a backend.

AWS
EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.