[01] Introduction Flashcards
Where must images be stored that are run by ECS?
In a registry e.g., ECR
Do ECS container instances require inbound ports to be opened?
No, the ECS agent makes outbound connections to the control plane
What command allows a user to run docker
without sudo
?
sudo usermod -a -G docker
What does the EXPOSE
command in a Dockerfile do?
It is purely metadata and doesn’t restrict or limit what ports can be exposed using docker run
How many registries does ECR have per account per region?
One
What does creating an EC2 capacity provider from the Console do?
Creates a CloudFormation stack to deploy an ASG, launch template, and capacity provider association
What does the launch template include when creating an EC2 capacity provider?
User data to define which cluster the instance should join: echo ECS_CLUSTER= >> /etc/ecs/ecs.config
What is AWS App2Container
?
A CLI tool for containerising existing applications
What is the credential source precedence for AWS SDKs?
- Credentials that are explicitly set through the service-client constructor
- Environment variables
- The shared credentials file (
~/.aws/credentials
for Linux) - Credentials loaded from the ECS task metadata endpoint, 5. Credentials loaded from the EC2 IMDS
When is the EC2 launch type recommended?
For large workloads which must be price optimised, or when advanced features (e.g. GPUs) are required
What endpoints need to be configured to connect to the ECS service using PrivateLink?
com.amazonaws.{{region}}.ecs-agent
, com.amazonaws.{{region}}.ecs-telemetry
, com.amazonaws.{{region}}.ecs
(these aren’t required for Fargate tasks)