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
460
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
用 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.3k
MySQL to NoSQL & Search Engine
gslin
0
2.2k
用 Vagrant 與 Docker 拯救世界
gslin
1
320
Startup IT infrastructure: Developing and Working with AWS
gslin
8
3.8k
Talk about Percona XtraDB Cluster
gslin
0
220
API Design Optimized for Mobile Platform
gslin
9
8.8k
Use Facebook::Graph to write desktop application
gslin
2
520
COSCUP 2012 - MySQL System Stability
gslin
17
12k
MySQL System Stability
gslin
4
6k
Other Decks in Technology
See All in Technology
【GCC2026】大規模言語モデルを活用した内製検索サービスの社内展開や業務活用
bandainamcostudios
PRO
0
350
作って理解するCoding Agent 〜フレームワークに頼らないピュア Python での実装〜
takapy
1
130
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
5k
8bit CPU 2026
koba789
0
240
FDEの心得
noriakioji
5
6.4k
AIペネトレーションテスト・ セキュリティ検証「AgenticSec」紹介資料
laysakura
2
9.3k
AIコーディングの次。コードレビューと理解負荷を解消して組織の開発生産性を高める
moongift
PRO
2
2.7k
20分でわかるセキュアAPI
nwiizo
2
320
AI-DLC実践録_フルサイクル開発への挑戦
miyuc
0
310
Bits Agent Builder の⼊⾨と活⽤事例
nulabinc
PRO
0
250
MulticaとPi Coding Agentで、小規模OSSを30本同時運用した流れ
eiei114
0
130
LanceDB入門
mocobeta
9
640
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
4 Signs Your Business is Dying
shpigford
187
23k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
Everyday Curiosity
cassininazir
0
290
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
WCS-LA-2024
lcolladotor
0
800
Building AI with AI
inesmontani
PRO
1
1.1k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
550
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
470
Prompt Engineering for Job Search
mfonobong
0
410
First, design no harm
axbom
PRO
2
1.3k
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。