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
用 AWS CodeDeploy 解決程式佈署
Search
Gea-Suan Lin
September 20, 2018
Technology
430
0
Share
用 AWS CodeDeploy 解決程式佈署
Gea-Suan Lin
September 20, 2018
More Decks by Gea-Suan Lin
See All by Gea-Suan Lin
High Availability Vault Service on AWS Environment
gslin
0
7.2k
MySQL to NoSQL & Search Engine
gslin
0
2.2k
用 Vagrant 與 Docker 拯救世界
gslin
1
290
Startup IT infrastructure: Developing and Working with AWS
gslin
8
3.7k
Talk about Percona XtraDB Cluster
gslin
0
200
API Design Optimized for Mobile Platform
gslin
9
8.8k
Use Facebook::Graph to write desktop application
gslin
2
510
COSCUP 2012 - MySQL System Stability
gslin
17
12k
MySQL System Stability
gslin
4
6k
Other Decks in Technology
See All in Technology
さくらのクラウドでつくるCloudNative Daysのオブザーバビリティ基盤
b1gb4by
0
150
AIを活用したアクセシビリティ改善フロー
degudegu2510
1
170
2026年春から始めるOpenTelemetry | sogaoh's LT @ PHP Conference ODAWARA 2026
sogaoh
PRO
0
100
生成AI時代のエンジニア育成 変わる時代と変わらないコト
starfish719
0
550
Hooks, Filters & Now Context: Why MCPs Are the “Hooks” of the AI Era
miriamschwab
0
130
ADOTで始めるサーバレスアーキテクチャのオブザーバビリティ
alchemy1115
2
270
さくらのAI Engineから始める クラウドネイティブ意識
melonps
0
130
New CBs New Challenges
ysuzuki
1
170
Claude Teamプランの選定と、できること/できないこと
rfdnxbro
1
1.9k
AI前提とはどういうことか
daisuketakeda
0
180
「決め方」の渡し方 / How to hand over the "decision-making process"
pauli
8
1.3k
インフラを Excel 管理していた組織が 3 ヶ月で IaC 化されるまで
geekplus_tech
3
170
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
432
67k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
520
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
870
How to make the Groovebox
asonas
2
2.1k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
330
How STYLIGHT went responsive
nonsquared
100
6k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
370
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
Designing Powerful Visuals for Engaging Learning
tmiket
1
330
Transcript
用 AWS CodeDeploy 解決程式佈署 Gea-Suan Lin
[email protected]
CodeDeploy 是什麼? • https://aws.amazon.com/tw/codedeploy/ • 口語:「把程式丟到機器上」 • 目前支援三種情境: ◦ EC2
instance ◦ On-premise instance ◦ Lambda
CodeDeploy 的費用 • 沒有低消,用多少算多少。 • 佈署到 EC2 instance (同區?) 不用額外費用。
• 佈署到 On-premise instance 目前為 USD$0.02/台/次。
CodeDeploy 的好處 • 專注於 Deployment 的工具: ◦ Deployment Type ◦
Rollback ◦ Notification • 與 AWS 的服務整合。
CodeDeploy 的缺點 • 沒有 Incremental Deployment。 • 不是很穩定的速度。
其他常見的 Deploy 方案 • 使用 SSH 的方式: ◦ Capistrano •
使用設定管理工具: ◦ Chef ◦ Puppet • 使用 Container 的方式: ◦ Docker
Live Demo • 在 AWS 上的 EC2 instance。 • 非
AWS 裡的 VPS。 • 小抄: ◦ https://wiki.gslin.org/wiki/AWS_CodeDeploy • 工具: ◦ https://github.com/gslin/codedeploy-makefile
CodeDeploy 的已知問題 • Ubuntu 18.04 的安裝問題。 • 無法任意下載最新版本。 • 沒有
Queue 的機制。
Ubuntu 18.04 上的安裝 • https://github.com/aws/aws-codedeploy-agent/issues/158 ◦ 參考 2018/08/01 我寫的 workaround
script。 • 兩個項目要繞過: ◦ 安裝程式的檢查。 ◦ codedeploiy-agent 的相依性。
在開機時下載最新版本 • 通常不會是太大的問題... • 但 race codition 很討厭。
Queue 機制 • 用 AWS CodePipeline 解決。
CodePipeline 是什麼? • 把整套機制串起來的服務:
CodePipeline 的費用 • 沒有低消,用多少算多少。 • 一個「活著」的 Pipeline 收 USD$1/month。
Live Demo Again • 串 GitHub 與 CodeDeploy。