Introduction to Amazon EC2 Container Service and setting up build pipeline with ECS and Jenkins. Presented by our DevOps engineer at a meetup conducted in our WhiteHedge office premises.
My INSURER PTE LTD - Insurtech Innovation Award 2024
EC2 Container Service
1. Introduction
to
Amazon
EC2
Container
Service and
setting
up
build
pipeline
with
ECS
and
Jenkins
Swapnil Dahiphale
DevOps
Engineer,
WhiteHedge
Technologies
4. What
are containers?
OS
virtualization
Process isolation
Automation
Images
Server
Guest OS
Bins/Libs Bins/Libs
App2App1
5. Why
use Docker?
With Docker we can solve many problems
• “it works on my machine”
• reducing build & deploy time
• Infrastructure
configuration –automation!
• Libs
dependency hell
• Cost
control
and granularity
19. What
is
ECS?
Easily
Manage
Clusters
for
Any Scale
• Nothing
to run
• Complete state
• Control
and monitoring
• Scale
ECS
List*
and
Describe*
APIactions
20. What
is
ECS?
Flexible
Container Placement
• Applications
• Batch jobs
• Multiple schedulers
21. What
is
ECS?
Designed
for
use
with
other
AWS services
• Virtual
Private Cloud
• Elastic
Load Balancing
• Elastic
Block Store
• IAM
• CloudTrail
33. Typical
user workflow
Run Instances Amazon
EC2
Use custom AMI with
Docker support and
ECS Agent. Instances
will register with
default cluster.
34. Typical
user workflow
Create Task Definition
Declare resource
requirements for
containers
Shared Data Volume
Node.jsApp
Time of day
App
35. Typical
user workflow
Create Service
Declare resource
requirements for
service
Shared Data Volume
Node.jsApp
Time of day
App
Elastic
Load
Balancing
X 5