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 ?
You have three options for uploading data from EC2 to S3 by using
Both interface endpoint and gateway endpoint use AWS PrivateLink (Hyperplane) technology.
I think the difference in pricing is related to difference in the nature of services deployment:
Interface endpoints as ENIs got an IP address allocated and they are under your (customer) control. Hence, you are consuming AWS network resources.
At the same time, underlying network resources for Gateway endpoints are not exposed to you (customer), hence, you as a customer, do not reserve any AWS resources and there is nothing to be charged for.