Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
DevOps On AWS - Farouq Mousa
Search
AWS MENA Community
September 25, 2020
Technology
1
110
DevOps On AWS - Farouq Mousa
DevOps On AWS - By Farouq Mousa.pdf
AWS MENA Community
September 25, 2020
Tweet
Share
More Decks by AWS MENA Community
See All by AWS MENA Community
AWS UG DXB 2021 container series- IV
awsmena
1
86
Building Modern Applications on AWS with Persistent Storage
awsmena
0
63
Getting started with AWS Device Farm and Selenium WebDriver
awsmena
3
1.1k
Terraform CICD Best Practices
awsmena
2
91
How to select the righ EBS?
awsmena
1
81
AWS MENA Community Day - GitOps on AWS_ Codifying multi-cloud operations
awsmena
0
100
Serverless SaaS By Ali El Kontar
awsmena
1
77
Continuous verification for serverless applications By Gunnar Grosch
awsmena
1
42
AI/ML on AWS By Ahmed Raafat
awsmena
1
110
Other Decks in Technology
See All in Technology
MCP とマネージド PaaS で実現する大規模 AI アプリケーションの高速開発
nahokoxxx
1
1.4k
ML Pipelineの開発と運用を OpenTelemetryで繋ぐ @ OpenTelemetry Meetup 2025-07
getty708
0
240
Semantic Machine Intelligence for Vision, Language, and Actions
keio_smilab
PRO
2
390
2025-07-25 NOT A HOTEL TECH TALK ━ スマートホーム開発の最前線 ━ SOFTWARE
wakinchan
0
120
「手を動かした者だけが世界を変える」ソフトウェア開発だけではない開発者人生
onishi
10
3.9k
Bliki (ja), and the Cathedral, and the Bazaar
koic
8
1.3k
Wasmで社内ツールを作って配布しよう
askua
0
120
組織内、組織間の資産保護に必要なアイデンティティ基盤と関連技術の最新動向
fujie
0
510
自分がLinc’wellで提供しているプロダクトを理解するためにやったこと
murabayashi
1
160
FAST導入1年間のふりかえり〜現実を直視し、さらなる進化を求めて〜 / Review of the first year of FAST implementation
wooootack
1
120
SAE J1939シミュレーション環境構築
daikiokazaki
0
150
Shadow DOM & Security - Exploring the boundary between light and shadow
masatokinugawa
0
660
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
It's Worth the Effort
3n
185
28k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
760
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
370
Mobile First: as difficult as doing things right
swwweet
223
9.7k
4 Signs Your Business is Dying
shpigford
184
22k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Building a Modern Day E-commerce SEO Strategy
aleyda
42
7.4k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
109
19k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Transcript
COMMUNITY DAY MENA DevOps on AWS, Getting Started
Farouq Mousa AWS Solutions Architect | DevOps Engineer | Genesys
Consultant | AWS UG Leader at Palestine @farouqmousa @farouqmousa
Agenda ▪ AWS CodeDeploy ▪ AWS CodeBuild ▪ AWS CodePipeline
CodeDeploy AWS Native Continuous Delivery Tools CodeBuild CodePipeline
DevOps and Continuous Delivery • Automated deployments • Repeatable and
safer • Smaller change sizes • Deploy morefrequently • Faster feedback loops • Learn and reactquicker • Deliver more value
CodeDeploy DEPLOYING APPS W I T H
Benefits of CodeDeploy • Automate yourdeployments • Fully managed serverlessservice
• Free withinAWS • $0.02 per on-premises instanceupdate • Centralize control • Versatile
Application The core component CodeDeploy Components Deployment Group A target
for your deployment Deployment Roll out anapp revision
Compute platform EC2/On-premises, AWS Lambda, Amazon ECS A uniquename An
identifier that isunique inside its AWS account A CodeDeploy Application
ECS An ECS cluster + An ECS service + A
load balancer + Target Group 1 + Target Group 2 Lambda Lambda function name EC2/On-premises Autoscaling groups EC2 instance tags On-premises hosts Deployment Groups
Deployment group Targets for the deployment A CodeDeploy Deployment Deployment
configuration Such as “One At A Time” Revision An application version Deployment type “In Place” or “Blue-Green”
ECS AppSpec file Task Definition version Container name Container port
Lambda AppSpec file Function name Function alias Version info EC2/On-premises GitHub commit ID or Zip file in S3 Revisions
version: 0.0 os: linux files: - source: /src destination: /var/www/html
hooks: BeforeInstall: - location: scripts/before_install.sh timeout: 300 runas: root AppSpec File: appspec.yml
EC2 or on-premisesinstance Installing the CodeDeploy Agent codedeploy-agent EC2 User
Data
#!/bin/bash -xe yum install -y ruby cd /opt curl -O
https://aws-codedeploy-us-east- 1.s3.amazonaws.com/latest/install chmod +x ./install ./install auto Install CodeDeploy - Red Hat
CodeDeploy ELB EC2 Connecting All CodeDeploy Pieces IAM GitHub or
S3 Revisions agent IAM
CodeBuild CONTINUOUS INTEGRATION W I T H
• Software licensing • CI software upgrades • Underlying host
management • Agent configurations • Hand crafted build projects • Queued builds Traditional CI
Continuous Integration • DevOps and agile processes • Helps prevent
merge conflicts • Triggers off code commits • Static code analysis • Compiles code • Runs tests • Packages and publishes artifacts • Catch and fix problems quicker
Continuous Integration Systems Managed services Master/agent Open Source andfree
Teamcity Bamboo Jenkins GitLab Travis CircleCI Alternatives to CodeBuild
Benefits of CodeBuild • Fully managed build service • Elastic
scaling • Pay only for build time used • CLI and API driven • Define builds as code • Tightly knit AWS integrations • Extensible
Sends notifications Runs tests Static code analysis Compiles code Runs
builds How Is CodeBuild Used in a CI/CD pipeline? 1 2 3 4 6 Publishes Artifacts 5
Build project The definition ofyour project Build or Build run
An execution of your Build project CodeBuild Components
Metrics Build triggers Build details Build history Build Project
Environment Artifacts Project configuration Source Build Spec Logs CodeBuild Project
Build Details
Build details Environment variables Phase details Build logs Build status
Builds or Build Runs
CodeBuild Connecting All the Pieces Git repo orS3 Source Artifact
store Projects Builds
version: 0.2 env: variables: key: “value” parameter-store: key: “value” phases:
build: commands: - compile commands - test commands artifacts: files: - target/messageUtil-1.0.jar Build Spec File:buildspec.yml
Ruby Golang Python Java .NET PHP Testing Tools
CodePipeline AUTOMATING SOFTWARE RELEASES WITH
Continuous Delivery Pipelines • A Continuous Delivery tool • Define
your entire release process • Ties together disparate systems • Flows Code out to production
Prerequisites for CodePipeline AW S account IAM credentials
Prerequisites for CodePipeline Source code Build process D eployment or
Benefits of CodePipeline • Fully managed pipeline service • Pay
only for active pipelines • Tightly tightly AWS integrations • Third party developer tool actions • Extensible via Lambda and custom actions
Artifacts Bundles of code produced by astage and ingested by
another stage Transitions The connections between stages Stages A collection of action groups that contain actions Pipeline Components
A CodePipeline Stage Action Group Actions Pipeline Stage Action Group
Actions runOrder: 1 runOrder: 1 runOrder: 2 runOrder: 2
Visualizing CodePipeline Transition Source Stage Action Group G itHub action
Build Stage Action Group C o deB uild action Deploy Stage Action Group C o deD eploy action Transition Pipeline
Test Action Approval Action Source Action Build Action Deploy Action
Invoke Action Action Types
CloudWatch Events A configured rule can route CodePipeline event info
to one or more targets CodeDeploy Triggers Publish to an S N S topic when deployment events occur for a deployment group Pipeline Execution Monitoring
Thank You ☺ @farouqmousa @farouqmousa