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
20221112_四国クラウドお遍路.pdf
Search
koara
November 14, 2022
Technology
360
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20221112_四国クラウドお遍路.pdf
koara
November 14, 2022
More Decks by koara
See All by koara
SST ( Serverless Stack Toolkit ) 使ってみた
ra1211
0
250
AWSでデータ解析を始めたーい
ra1211
0
370
もめんと会 Momento Cache
ra1211
0
85
JAWS-UG 名古屋 AVAハンズオン+re:Inforceの復習
ra1211
0
140
JAWS ミート 2023
ra1211
0
82
JAWS-UG大阪 AWS re:Invent 2022 re:Cap
ra1211
0
140
Other Decks in Technology
See All in Technology
自分で立ててみるLLMサービス
y_sera15
0
160
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.5k
スキマバイトという雇用形態は存在しないので、雇用期間1日のアルバイト契約を事業者とワーカーが結ぶ手続きを支えるのがタイミーなんです
akitoshiga
0
120
会社説明資料
persolserverworks
0
9.7k
継続的なAIコスト最適化
bgpat
1
290
LLM機能を自作して分かるSnowflake Cortex AIの強み
nayuts
0
370
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
420
Loop Engineering, beyond prompt, context, and harness engineering
glaforge
0
100
go-sqletch
moznion
0
140
【Data Engineering Summit2026_登壇資料】医療ビッグデータ×AIエージェントを支えるデータ基盤とハーネスエンジニアリング
jmdc_presentation
0
130
USB PDを使ってスマホを労わりたい
raspython3
0
160
転んだ話が背中を預ける理由になる / A_story_about_falling_down_gives_you_a_reason_to_watch_each_other_s_backs.pdf
pauli
3
360
Featured
See All Featured
Marketing to machines
jonoalderson
1
5.9k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
300
GitHub's CSS Performance
jonrohan
1033
470k
How to Talk to Developers About Accessibility
jct
2
570
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
58k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
The browser strikes back
jonoalderson
0
1.8k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Deep Space Network (abreviated)
tonyrice
0
360
Odyssey Design
rkendrick25
PRO
2
870
Transcript
四国クラウドお遍路 • 2022/11/12 • 古賀 巧
アジェンダ 自己紹介 JAWS-UGに初めて参加してみた話 Lambda Powertoolsを使ってみた話
3 自己紹介 ▪氏名・年齢 古賀 巧(@koara__fftr) 26→27歳 ▪経歴 SESでプリンタードライバーの開発・保守 ▪資格 ▪趣味
音楽
4 AWSとの出会い 去年夏 社内スピーチ AWS!! AWS!! AWS!!
5 AWS以前 AWSに出会ってから • 自分だけのネットワークを作成・管理 • アプリ全体を作成 • C/C++/C# •
Pythonすこし • 各種ログ(トレースログ,パケログ) • ダンプ解析etc.. 楽 し い 楽しい 楽しい 楽しい 楽しい
6 社内は難しそうなので社外へ...
7 JAWSに参加して良かったこと • 視野が広がる • やってみたいことが見つけられる • インプットの量が爆増 • 何とかなる☆(ゝω・)v
AWS Lambda Powertools for Python 使ってみた
9 サーバーレスは分散アーキテクチャー
10 分散アーキテクチャーを上手く運用するには →Serverless Applications Lens
11 Serverless Applications Lens Design Principles 1. Speedy, simple, singular
2. Think concurrent requests, not total requests 3. Share nothing 4. Assume no hardware affinity 5. Orchestrate your application with state machines, not functions 6. Use events to trigger transactions 7. Design for failures and duplicates
12 Serverless Applications Lens Operate section Metrics and alerts Centralized
and structured logging Distributed tracing Prototyping Configuration Testing Deploying
13 AWS Lambda Powertoolsとは AWSが開発するのオープンソースユーティリティー ▪できること Metrics Logger Tracer Event
Handler etc.. ▪使用できる言語 Java, Typescript, Python, .NET
14 AWS Lambda Powertoolsとは
15 AWS Lambda Powertools for Python ▪使い方 Lambda Layerとして利用 Lambda
Layer (x86_64):arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV2:13 Lambda Layer (arm64): arn:aws:lambda:{region}:017000801446:layer:AWSLambdaPowertoolsPythonV2-Arm64:13 PyPiからインストール PyPi: pip install "aws-lambda-powertools“ SAM: requirements.txt に aws-lambda-powertools を追加
16 Tracer X-Ray SDKのラッパー 通ったルートの可視化、例外情報もキャプチャ
17 Tracer 使い方
18 Metrics ※Lambda Powertools が使用できない言語を使用している 場合は Amazon CloudWatch Embedded Metric
Format ライブラリーを使用する 1. Lambda実行時にCloudWatch Logs へEMF形式でログ出力 2. CloudWatch Logs→非同期にCloudWatch Metrics
19 Metrics ※Lambda Powertools が使用できない言語を使用してい る場合は Amazon CloudWatch Embedded Metric
Formatライブラリーを使用する 様々な目的 • 運用のためのメトリクス • ビジネスKPIのためのメトリクス • ユーザーエクスペリエンスのメトリクス • システムのメトリクス
20 Metrics ※Lambda Powertools が使用できない言語を使用してい る場合は Amazon CloudWatch Embedded Metric
Formatライブラリーを使用する 使い方
2022/11/14 プレゼンテーションのタイトル 21 Logger よしなにJSON形式のログ出力 Handler以外でのログ出力も可能
22 AWS Lambda Powertools まとめ 障害を防ぐための運用をサポート 障害発生後の解析もサポート
参考サイト https://aws.amazon.com/jp/builders-flash/202203/lambda-powertools-python-1/?awsf.filter-name=*all https://awslabs.github.io/aws-lambda-powertools-python/2.2.0/ https://awstip.com/monitoring-lambdas-using-aws-powertools-1d11c0157c8e
ご清聴ありがとうございました