Marc
Marc

Reputation: 704

Resource policies and cost on AWS API Gateway

I'm curious about using API Gateway resource policies to only allow a subset of IPs to access it. I am wondering, if someone outside of this IP range would spam the endpoint, would that still incur costs or do you only pay for "non-rejected" requests?

Thanks

Upvotes: 4

Views: 223

Answers (1)

Seth E
Seth E

Reputation: 1115

would that still incur costs or do you only pay for "non-rejected" requests?

You do not pay for rejected requests. I have worked with the developers to confirm the code that triggers the charges executes only after the request gets past the access controls

Upvotes: 3

Related Questions