Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
用 AWS CodeDeploy 解決程式佈署
Search
Gea-Suan Lin
September 20, 2018
Technology
480
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.3k
用 Vagrant 與 Docker 拯救世界
gslin
1
350
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.9k
Use Facebook::Graph to write desktop application
gslin
2
520
COSCUP 2012 - MySQL System Stability
gslin
17
12k
MySQL System Stability
gslin
4
6.1k
Other Decks in Technology
See All in Technology
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
190
NDIでApple Vision Proにリアルタイム映像送信
jyouryuusui
0
130
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
300
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
350
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
PRO
0
440
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
900
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
930
Kiro Crewで「みのるん式」仕事術やってみた
minorun365
PRO
3
910
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
180
Local CI × GitHub Actions
gogutan
3
230
FinOps Agentが生んだ技術負債:コスト自動調査の落とし穴と解消までの道のり
oasis1994liveforever
2
170
専門領域のAIをどう評価するか
bengo4com
2
330
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
570
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
The Invisible Side of Design
smashingmag
301
52k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
30 Presentation Tips
portentint
PRO
1
430
How to train your dragon (web standard)
notwaldorf
96
6.9k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
Build your cross-platform service in a week with App Engine
jlugia
234
19k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
810
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。