AWS Data Transfer Costs within the same machine Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Come Celebrate our 10 Year Anniversary!Tracking costs within one AWS accountAWS Costs Explorer - Data Transfer chargesDoes the ELB also route outbound reply traffic in AWSAWS: Serve up website from private subnet?Large AWS Regional Data Transfer cost; ELB to blame?How to get the IP Address for a specific AWS ECS task?AWS Elastic Load Balancer DNS issuesAWS ECS: Service + autoscaling vs User Data launching TaskData Transfer IN for EC2 Instances in different account but same regionTransfer AWS to own infrastructure

Will I lose my paid in full property

Why is arima in R one time step off?

Does Prince Arnaud cause someone holding the Princess to lose?

Is Bran literally the world's memory?

All ASCII characters with a given bit count

Marquee sign letters

What to do with someone that cheated their way though university and a PhD program?

What does こした mean?

/bin/ls sorts differently than just ls

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

What's parked in Mil Moscow helicopter plant?

Can gravitational waves pass through a black hole?

Eigenvalues of the Laplacian of the directed De Bruijn graph

Is there a verb for listening stealthily?

TV series episode where humans nuke aliens before decrypting their message that states they come in peace

Simulate round-robin tournament draw

Coin Game with infinite paradox

How to translate "red flag" into Spanish?

Why does Java have support for time zone offsets with seconds precision?

Cisco DHCP Router

Israeli soda type drink

What happened to Viserion in Season 7?

Why did Israel vote against lifting the American embargo on Cuba?

What is a 'Key' in computer science?



AWS Data Transfer Costs within the same machine



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Tracking costs within one AWS accountAWS Costs Explorer - Data Transfer chargesDoes the ELB also route outbound reply traffic in AWSAWS: Serve up website from private subnet?Large AWS Regional Data Transfer cost; ELB to blame?How to get the IP Address for a specific AWS ECS task?AWS Elastic Load Balancer DNS issuesAWS ECS: Service + autoscaling vs User Data launching TaskData Transfer IN for EC2 Instances in different account but same regionTransfer AWS to own infrastructure



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have an ECS cluster of services running on a few EC2 machines. Each service is internet facing and forms a target group, all these target groups are on the same load balancer.



Architecture:
Service 1 -> TG1 -> ELB
Service 2 -> TG2 -> ELB

ELB Rules:
If request from 1.domain.com -> route to Service 1
If request from 2.domain.com -> route to Service 2


The services communicate with one another via their public CNAMEs.



I'm trying to figure out data-out transfer costs when Service 1 communicates with Service 2 by calling an endpoint on 2.domain.com. I think we'd be charged at the same rate as data-out to public internet even though the services are in the same region (could literally be hosted on the same machine), as the communication doesn't happen through a private IP but through the public internet. I've consulted the AWS documentation and can't find anything related to confirm this. Can someone help with this please?



Edited to Add: My AWS bill reflects data out charges because we use several public services and we provide information to clients outside the network. I want to know if this specific case is charged as well.










share|improve this question









New contributor




svetha.cvl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    What does your AWS bill say when you try it?

    – womble
    Apr 17 at 6:52











  • OpenGuide may help, specifically this picture.

    – Tim
    Apr 17 at 7:34











  • Updated my question to include billing output.

    – svetha.cvl
    Apr 17 at 15:37

















0















I have an ECS cluster of services running on a few EC2 machines. Each service is internet facing and forms a target group, all these target groups are on the same load balancer.



Architecture:
Service 1 -> TG1 -> ELB
Service 2 -> TG2 -> ELB

ELB Rules:
If request from 1.domain.com -> route to Service 1
If request from 2.domain.com -> route to Service 2


The services communicate with one another via their public CNAMEs.



I'm trying to figure out data-out transfer costs when Service 1 communicates with Service 2 by calling an endpoint on 2.domain.com. I think we'd be charged at the same rate as data-out to public internet even though the services are in the same region (could literally be hosted on the same machine), as the communication doesn't happen through a private IP but through the public internet. I've consulted the AWS documentation and can't find anything related to confirm this. Can someone help with this please?



Edited to Add: My AWS bill reflects data out charges because we use several public services and we provide information to clients outside the network. I want to know if this specific case is charged as well.










share|improve this question









New contributor




svetha.cvl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    What does your AWS bill say when you try it?

    – womble
    Apr 17 at 6:52











  • OpenGuide may help, specifically this picture.

    – Tim
    Apr 17 at 7:34











  • Updated my question to include billing output.

    – svetha.cvl
    Apr 17 at 15:37













0












0








0








I have an ECS cluster of services running on a few EC2 machines. Each service is internet facing and forms a target group, all these target groups are on the same load balancer.



Architecture:
Service 1 -> TG1 -> ELB
Service 2 -> TG2 -> ELB

ELB Rules:
If request from 1.domain.com -> route to Service 1
If request from 2.domain.com -> route to Service 2


The services communicate with one another via their public CNAMEs.



I'm trying to figure out data-out transfer costs when Service 1 communicates with Service 2 by calling an endpoint on 2.domain.com. I think we'd be charged at the same rate as data-out to public internet even though the services are in the same region (could literally be hosted on the same machine), as the communication doesn't happen through a private IP but through the public internet. I've consulted the AWS documentation and can't find anything related to confirm this. Can someone help with this please?



Edited to Add: My AWS bill reflects data out charges because we use several public services and we provide information to clients outside the network. I want to know if this specific case is charged as well.










share|improve this question









New contributor




svetha.cvl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have an ECS cluster of services running on a few EC2 machines. Each service is internet facing and forms a target group, all these target groups are on the same load balancer.



Architecture:
Service 1 -> TG1 -> ELB
Service 2 -> TG2 -> ELB

ELB Rules:
If request from 1.domain.com -> route to Service 1
If request from 2.domain.com -> route to Service 2


The services communicate with one another via their public CNAMEs.



I'm trying to figure out data-out transfer costs when Service 1 communicates with Service 2 by calling an endpoint on 2.domain.com. I think we'd be charged at the same rate as data-out to public internet even though the services are in the same region (could literally be hosted on the same machine), as the communication doesn't happen through a private IP but through the public internet. I've consulted the AWS documentation and can't find anything related to confirm this. Can someone help with this please?



Edited to Add: My AWS bill reflects data out charges because we use several public services and we provide information to clients outside the network. I want to know if this specific case is charged as well.







amazon-web-services amazon-ec2






share|improve this question









New contributor




svetha.cvl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




svetha.cvl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Apr 17 at 15:37







svetha.cvl













New contributor




svetha.cvl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 17 at 6:30









svetha.cvlsvetha.cvl

32




32




New contributor




svetha.cvl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





svetha.cvl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






svetha.cvl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 1





    What does your AWS bill say when you try it?

    – womble
    Apr 17 at 6:52











  • OpenGuide may help, specifically this picture.

    – Tim
    Apr 17 at 7:34











  • Updated my question to include billing output.

    – svetha.cvl
    Apr 17 at 15:37












  • 1





    What does your AWS bill say when you try it?

    – womble
    Apr 17 at 6:52











  • OpenGuide may help, specifically this picture.

    – Tim
    Apr 17 at 7:34











  • Updated my question to include billing output.

    – svetha.cvl
    Apr 17 at 15:37







1




1





What does your AWS bill say when you try it?

– womble
Apr 17 at 6:52





What does your AWS bill say when you try it?

– womble
Apr 17 at 6:52













OpenGuide may help, specifically this picture.

– Tim
Apr 17 at 7:34





OpenGuide may help, specifically this picture.

– Tim
Apr 17 at 7:34













Updated my question to include billing output.

– svetha.cvl
Apr 17 at 15:37





Updated my question to include billing output.

– svetha.cvl
Apr 17 at 15:37










1 Answer
1






active

oldest

votes


















0














Even though you are accessing a service within the same server or VPC, if you access that service through the public IP address, then the connection will exit your VPC and re-enter. This will incur outgoing data transfer costs.



To access a service within the same VPC (or within the same server) without incurring data transfer costs, use the private IP address or localhost/127.0.0.1 (if the service is on the same server).






share|improve this answer























  • That makes sense, thanks. I have multiple tasks to a service, all of them behind a load balancer, plus dynamic port management by ECS. So I don't think I can access using the private IP or localhost.

    – svetha.cvl
    Apr 18 at 5:16











  • If your load balancer was internal only, then you could access it via the internal IP addresses and that wouldn't incur any data transfer costs.

    – Matt Houser
    Apr 18 at 11:08











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






svetha.cvl is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963413%2faws-data-transfer-costs-within-the-same-machine%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Even though you are accessing a service within the same server or VPC, if you access that service through the public IP address, then the connection will exit your VPC and re-enter. This will incur outgoing data transfer costs.



To access a service within the same VPC (or within the same server) without incurring data transfer costs, use the private IP address or localhost/127.0.0.1 (if the service is on the same server).






share|improve this answer























  • That makes sense, thanks. I have multiple tasks to a service, all of them behind a load balancer, plus dynamic port management by ECS. So I don't think I can access using the private IP or localhost.

    – svetha.cvl
    Apr 18 at 5:16











  • If your load balancer was internal only, then you could access it via the internal IP addresses and that wouldn't incur any data transfer costs.

    – Matt Houser
    Apr 18 at 11:08















0














Even though you are accessing a service within the same server or VPC, if you access that service through the public IP address, then the connection will exit your VPC and re-enter. This will incur outgoing data transfer costs.



To access a service within the same VPC (or within the same server) without incurring data transfer costs, use the private IP address or localhost/127.0.0.1 (if the service is on the same server).






share|improve this answer























  • That makes sense, thanks. I have multiple tasks to a service, all of them behind a load balancer, plus dynamic port management by ECS. So I don't think I can access using the private IP or localhost.

    – svetha.cvl
    Apr 18 at 5:16











  • If your load balancer was internal only, then you could access it via the internal IP addresses and that wouldn't incur any data transfer costs.

    – Matt Houser
    Apr 18 at 11:08













0












0








0







Even though you are accessing a service within the same server or VPC, if you access that service through the public IP address, then the connection will exit your VPC and re-enter. This will incur outgoing data transfer costs.



To access a service within the same VPC (or within the same server) without incurring data transfer costs, use the private IP address or localhost/127.0.0.1 (if the service is on the same server).






share|improve this answer













Even though you are accessing a service within the same server or VPC, if you access that service through the public IP address, then the connection will exit your VPC and re-enter. This will incur outgoing data transfer costs.



To access a service within the same VPC (or within the same server) without incurring data transfer costs, use the private IP address or localhost/127.0.0.1 (if the service is on the same server).







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 17 at 23:49









Matt HouserMatt Houser

7,8341518




7,8341518












  • That makes sense, thanks. I have multiple tasks to a service, all of them behind a load balancer, plus dynamic port management by ECS. So I don't think I can access using the private IP or localhost.

    – svetha.cvl
    Apr 18 at 5:16











  • If your load balancer was internal only, then you could access it via the internal IP addresses and that wouldn't incur any data transfer costs.

    – Matt Houser
    Apr 18 at 11:08

















  • That makes sense, thanks. I have multiple tasks to a service, all of them behind a load balancer, plus dynamic port management by ECS. So I don't think I can access using the private IP or localhost.

    – svetha.cvl
    Apr 18 at 5:16











  • If your load balancer was internal only, then you could access it via the internal IP addresses and that wouldn't incur any data transfer costs.

    – Matt Houser
    Apr 18 at 11:08
















That makes sense, thanks. I have multiple tasks to a service, all of them behind a load balancer, plus dynamic port management by ECS. So I don't think I can access using the private IP or localhost.

– svetha.cvl
Apr 18 at 5:16





That makes sense, thanks. I have multiple tasks to a service, all of them behind a load balancer, plus dynamic port management by ECS. So I don't think I can access using the private IP or localhost.

– svetha.cvl
Apr 18 at 5:16













If your load balancer was internal only, then you could access it via the internal IP addresses and that wouldn't incur any data transfer costs.

– Matt Houser
Apr 18 at 11:08





If your load balancer was internal only, then you could access it via the internal IP addresses and that wouldn't incur any data transfer costs.

– Matt Houser
Apr 18 at 11:08










svetha.cvl is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















svetha.cvl is a new contributor. Be nice, and check out our Code of Conduct.












svetha.cvl is a new contributor. Be nice, and check out our Code of Conduct.











svetha.cvl is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963413%2faws-data-transfer-costs-within-the-same-machine%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?