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
Golang on AWS
Search
cupper
November 23, 2019
Programming
0
46
Golang on AWS
cupper
November 23, 2019
Tweet
Share
More Decks by cupper
See All by cupper
kintoneでAWSリソースを管理する
cupperservice
0
79
History of HTTP
cupperservice
0
79
Let's get started with Scala
cupperservice
0
390
All in Scala
cupperservice
0
52
Recommendation_of_Gatling.pdf
cupperservice
2
530
What's scala.js?
cupperservice
0
53
How to work in local
cupperservice
0
60
Make a REST Server on Golang
cupperservice
0
88
Why do you use JavaScript
cupperservice
0
29
Other Decks in Programming
See All in Programming
ゲームの物理 剛体編
fadis
0
390
生成AIを利用するだけでなく、投資できる組織へ
pospome
2
430
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
430
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
180
生成AI時代を勝ち抜くエンジニア組織マネジメント
coconala_engineer
0
37k
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
280
CSC307 Lecture 03
javiergs
PRO
1
460
ThorVG Viewer In VS Code
nors
0
530
チームをチームにするEM
hitode909
0
430
Deno Tunnel を使ってみた話
kamekyame
0
300
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
10
1.5k
Vibe codingでおすすめの言語と開発手法
uyuki234
0
160
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.5k
WENDY [Excerpt]
tessaabrams
9
35k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.8k
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
180
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
140
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
97
Git: the NoSQL Database
bkeepers
PRO
432
66k
The Pragmatic Product Professional
lauravandoore
37
7.1k
Building Applications with DynamoDB
mza
96
6.9k
Transcript
Golang on AWS #Shizuoka.go 2019.11.23 Kazuhisa Kawashima Renée French
アジェンダ • 自己紹介 • 今日やること • システム構成 • 開発環境 •
Demo • まとめ
自己紹介
自己紹介:川嶋一寿 • 2019年6月株式会社ゆめみに入社(3社目) • フルリモート勤務(静岡) • Golangの経験 勉強会用に簡単なREST APIを作ったことがある程 度
(発表資料) • 好きな言語 Scala, TypeScript (型 Love!) 参考:Shizuoka.jsでのLT資料 • Twitter : @cupperservice • E-mail :
[email protected]
今日やること
今日やること メッセージを受信し、受信したメッセージをストレージに 保管すると同時に、Slackのチャネルに通知するREST APIを作成する。 ストレージ Slack チェネル 処理 保管 通知
メッセージ受信
システム構成
システム構成 AWS Lambda Amazon API Gateway Amazon Simple Storage Service
Slack Golang
使用するサービス • Amazon API Gateway • AWS Lambda • Amazon
S3 (Amazon Simple Storage Service) • AWS CloudFormation • Slack(Web hook)
Amazon API Gateway REST or WebSocketのAPIを構築するサービス AWSまたは、他のサービスにアクセスするAPIを作成 することができる 参照 :
Amazon API Gatewayとは
AWS Lambda サーバを管理する必要なく、コードを実行できるサー ビス 利用者は、自身が作成したコードのみに責任を負う。 メモリ、CPU、ネットワーク等のリソースはAWSが管理 する 参照 : AWS
Lambdaとは
Amazon S3 インターネット用のストレージサービス スケーラブルで信頼性が高く高速で安価なストレージ を利用できる 参照 : Amazon S3とは
AWS CloudFormation AWSリソースをモデル化し、セットアップやプロビジョ ニングを行うサービス 参照 : AWS CloudFormationとは
Slack 説明省略
開発環境
今回使用する開発環境 • golang 1.13.4 • VSCode + Remote - Containers
• Docker, Docker compose • Centos 7 • AWS CLI • SAM(Serverless application model)
Demo
API仕様 • Endpoint : /hello/{name} • Query Parameters ◦ key
◦ value Example : /hello/gopher?key=price&value=1000
まとめ
Golang on AWSってどう? • Golang用のSDKが整備されている。 AWSのリソースにGolangから簡単にアクセスでき る! • SAMは便利 簡単にサーバレスアプリを作って、AWSに配備す
ることができる!
Github repository aws-go-example
Thank you for listening! Renée French