I have an Ec2 instance in a public subnet and would be uploading data to an s3 bucket. I understand that while this traffic traverses the internet gateway, it does not leave the AWS network Reference: https://docs.aws.amazon.com/vpc/latest/privatelink/privatelink-access-aws-services.html
Now I am creating a s3 gateway end point (modify the route table to send traffic thru this). I also try creating a s3 interface end point. I measure that the time it takes to upload a 250MB file is the same in both cases (gateway endpoint and interface endpoint)
I am unable to understand two points:
If traffic does NOT leave the AWS network even though Internet gateway is used, in this case, is there any security benefit ?
When using privatelink, I understand that the traffic goes thru Hyperplane, which is why I get increased upload speed. https://www.youtube.com/watch?v=8gc2DgBqo9U&t=2010s And AWS is charging for the interface point.
However I don't understand why s3 gateway endpoints are free. Does it not use hyperplane ? Is it less performant or resilient ?