Sam
Sam

Reputation: 11

Allow / Restrict specific HTTP METHODS at AWS elb level

Is it possible to restrict specific HTTP METHODS at elb level? we want to allow only HTTP GET through AWS elb.

I checked AWS docs and googled but didn’t find any appropriate solution.

If it is not possible, is there any other AWS component using which we can achieve it? We just want to restrict GET calls alone go through ELB , so that the consumers can only retrieve data.

Thanks a lot for your help.

Upvotes: 1

Views: 3142

Answers (1)

Piyush Patil
Piyush Patil

Reputation: 14533

No you cannot achieve HTTP method restriction from load balancer. But you can achieve that using AWS Cloud Front.

What you can do is create a Cloud Front distribution using the ELB as the origin and select just the GET method in the "Allowed HTTP Method" in Cloud Front Distribution setting. Check screenshot below.

enter image description here

Upvotes: 3

Related Questions