Block creating public API Gateway endpoints

0

My customer wants to block their organization from creating Edge and Regional API Gateway endpoints (only allowing private).

I can't find a way to do this with an SCP since there is no action or condition around creating the API.

Any suggestions?

1 Answer
0
Accepted Answer

In that case the best way to do it is using AWS Config. Create custom AWS Config Rule if not already present to trigger a lambda function on creation or modification of APIGateway endpoint. Test the conditions in Lambda and take an action to either delete the endpoint and modify it to private.

AWS
MODERATOR
answered 4 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.

Guidelines for Answering Questions