https://pulumi.com logo
#aws
Title
# aws
d

delightful-controller-41497

08/11/2020, 5:35 PM
Is there a cost associated with VPC Links? (I can only find information about VPC PrivateLinks but I reckon these are different things)
l

little-cartoon-10569

08/11/2020, 8:26 PM
Do you mean VPC peering connections? Assuming both peers are in the same region, then this is the quote that applies:
Data transferred "in" to and "out" from Amazon EC2, Amazon RDS, Amazon Redshift , Amazon DynamoDB Accelerator (DAX), and Amazon ElastiCache instances or Elastic Network Interfaces across Availability Zones or VPC Peering connections in the same AWS Region is charged at $0.01/GB in each direction.
You can read more here: https://aws.amazon.com/ec2/pricing/on-demand/#Data_Transfer
d

delightful-controller-41497

08/12/2020, 8:32 AM
Thanks! I'm not sure if that's it. The VPC Link I mention is between API Gateway and ECS. What I'm most concerned is with hourly rates, e.g. VPC NAT is super expensive in my opinion (~$36/mo) so I just want to make sure I'm not paying something like that. But thank you again.
l

little-cartoon-10569

08/12/2020, 9:39 PM
No that's not it then. You want a VPC Endpoint. Though you'll probably want either an internet gateway or a NAT gateway too... https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints.html https://docs.aws.amazon.com/AmazonECS/latest/developerguide/vpc-endpoints.html
d

delightful-controller-41497

08/13/2020, 3:14 PM
There is no data processing or hourly charges for using Gateway Type VPC endpoints.
Very nice.
Btw, if one of my services does need access to the internet, is there a way to avoid incurring the hourly NAT gateway charges? I was thinking it might be possible to isolate the one service in a separate VPC that has an Internet Gateway (so that's free) and to allow it to talk to the other services, I could use a VPC Endpoint. Do you think that could work?