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
20221112_四国クラウドお遍路.pdf
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
koara
November 14, 2022
Technology
340
0
Share
20221112_四国クラウドお遍路.pdf
koara
November 14, 2022
More Decks by koara
See All by koara
SST ( Serverless Stack Toolkit ) 使ってみた
ra1211
0
240
AWSでデータ解析を始めたーい
ra1211
0
340
もめんと会 Momento Cache
ra1211
0
77
JAWS-UG 名古屋 AVAハンズオン+re:Inforceの復習
ra1211
0
130
JAWS ミート 2023
ra1211
0
76
JAWS-UG大阪 AWS re:Invent 2022 re:Cap
ra1211
0
120
Other Decks in Technology
See All in Technology
業務に残された「良くない型」で考える「TypeScriptの難しさ」
sajikix
3
980
なぜ、IAMロールのプリンシパルに*による部分マッチングが使えないのか? / 20260518-ssmjp-iam-role-principal
opelab
2
150
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.6k
その英語学習、AWSで代替できませんか?
suzutatsu
1
190
アプリブロック機能のつくりかたと、AIとHTMLの不合理な相性の良さについて
kumamotone
1
270
Python開発環境にハーネス適用を検討する
yuuka51
0
250
生成AI時代に信頼性をどう保ち続けるか - Policy as Code の実践
akitok_
1
530
【2026年版】プロジェクトマネジメント実践論|現役エンジニアが語る!~チームでモノづくりをする時のコツとは?~
mixi_engineers
PRO
1
120
ECSのTerraformモジュールにコントリビュートした話
harukasakihara
0
270
AI飲み会幹事エージェントを作っただけなのに
ykimi
0
250
[4] Power BI Deep Dive [2026-05]
ohata_bi
0
110
データ分析基盤の信頼を支える視点と設計
yuki_saito
0
130
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1033
470k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
Test your architecture with Archunit
thirion
1
2.2k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
A Tale of Four Properties
chriscoyier
163
24k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
230
Deep Space Network (abreviated)
tonyrice
0
150
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
From π to Pie charts
rasagy
0
180
The agentic SEO stack - context over prompts
schlessera
0
780
Design in an AI World
tapps
1
210
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
ご清聴ありがとうございました