Romain
Romain

Reputation: 809

Is a data transfer from EC2 to an ECS repository a data transfer OUT?

I need to build a docker image and send it to an ECS repository. Because my company's internet access is quite poor, I'm using an EC2 to achieve this.

I call docker push on the EC2, so I believe it may work similar as it is mentionned here with the cli.

My question is : As I am on the same AWS account and region, is my image transfer using docker push considered an external or an internal transfer ?

This has an impact on both speed and pricing.

Upvotes: 0

Views: 983

Answers (2)

jarmod
jarmod

Reputation: 78833

I think you are referring to Amazon's Elastic Container Registry (ECR).

Th ECR pricing page indicates that "Data transferred between Amazon Elastic Container Registry and Amazon EC2 within a single region is free of charge".

Upvotes: 1

Vorsprung
Vorsprung

Reputation: 34387

I assume you mean building a docker image on a EC2 and then pushing to ECR. After this the ECS cluster will pull the image and run as a container?

In this case, see this relevant ECR FAQ question from https://aws.amazon.com/ecr/faqs/

Q: Is Amazon ECR a global service? Amazon ECR is a regional service and is designed to give you flexibility in how images are deployed. You have the ability to push/pull images to the same region where your Docker cluster runs for the best performance. You can also access Amazon ECR anywhere that Docker runs such as desktops and on-premises environments. Pulling images between regions or out to the internet will have additional latency and data transfer costs.

assuming that the EC2 with the cli on it and the EC2 with the ECS servers running on them are in the same zone and account then there is no charge

Remember that ECS is simply running on EC2..see the ECS FAQ

Amazon Elastic Container Service (ECS) is a highly scalable, high performance container management service that supports Docker containers and allows you to easily run applications on a managed cluster of Amazon EC2 instances

If they are in a different zone then there is a charge, even in the same account

See https://aws.amazon.com/govcloud-us/pricing/data-transfer/

Upvotes: 2

Related Questions