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 Blocks を触ってみた/first-tach-aws-blocks
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
MURAKAMI Masahiko
July 04, 2026
Technology
260
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AWS Blocks を触ってみた/first-tach-aws-blocks
MURAKAMI Masahiko
July 04, 2026
More Decks by MURAKAMI Masahiko
See All by MURAKAMI Masahiko
AmplifyHostingConstructからSSRフレームワークのためのホスティング設計を考察する/amplify-hosting-construct
fossamagna
1
590
AWS Amplifyをもっと便利に使うための取り組み/amplify-tools-and-contributions
fossamagna
1
190
Amazon Verified Permissions実践入門 〜Cedar活用とAppSync導入事例/Practical Introduction to Amazon Verified Permissions
fossamagna
2
490
Amplify Gen2から知るAWS CDK Toolkit Libraryの使い方/How to use the AWS CDK Toolkit Library as known from Amplify Gen2
fossamagna
1
1k
AWS Amplify Gen2向けのVSCode拡張を作って公開してみた話/lts-techday-2024
fossamagna
0
81
CDKアプリとしてのAmplify Gen2 - @aws-amplify/backendのアーキテクチャにみるCDKベストプラクティス -
fossamagna
3
3.8k
Amplify Gen2の 新機能と実践的な使用例 AWS Amplify Gen 2 Festival in Japan/New features and practical use cases in Amplify Gen2
fossamagna
0
890
Amplify Gen2を 拡張してみよう JAWS-UG北陸新幹線 ( 福井開催 ) 2024-04-06/Let's extend Amplify Gen2
fossamagna
0
1.1k
みんな本当に AWS Amplify を知っている?/do-you-really-know-aws-amplify
fossamagna
0
220
Other Decks in Technology
See All in Technology
DevelopersIO 2026 知識の地図を描く ─ オントロジーとは何か?
ishikawa_satoru
1
1.7k
Conditional PED-ANOVA: Hyperparameter Importance in Hierarchical & Dynamic Search Spaces
pfn
PRO
0
130
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
330
遠藤な_めぐろLT #38 「社内のAI活用推進」@麻布台_20261009
endonanana
0
130
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
440
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
860
初海外で注意すべきこと12選!!!安全快適なre:invent生活にするために
yuuuuuuu168
1
160
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
570
Metadata - Section 1: HTML Basics
mohab1
0
110
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
570
NDIでApple Vision Proにリアルタイム映像送信
jyouryuusui
0
120
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
4.9k
Featured
See All Featured
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
740
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
How to train your dragon (web standard)
notwaldorf
96
6.9k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
410
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
870
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
My Coaching Mixtape
mlcsv
0
350
Designing for humans not robots
tammielis
254
26k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Transcript
AWS Blocks を触ってみた 〜 ローカルで作って、そのまま AWS へ 〜 JAWS-UG 福井
#3 AWS Summit のおみやげ話 LT 大会 2026-07-04 株式会社永和システムマネジメント プリンシパルエンジニア 村上 雅彦 a.k.a @fossamagna AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 1
自己紹介 名前: 村上 雅彦 所属: 株式会社永和システムマネジメント コミュニティ活動: JAWS-UG 福井支部 運営メンバー
Amplify Japan User Group 運営メンバー AWS Community Builder (DevTools since 2022) X (Twitter): @fossamagna GitHub: @fossamagna AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 2
今日、話すこと AWS Summit Japan で気になった AWS Blocks について話します。 セッション:明日から始める、コーディングエージェント時代のフルスタック開発 より。
今日は「AWS Blocks とは」 「IfC とは」 、そして実際に作ってみた話をします AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 3
AWS Blocks とは Build local full-stack apps in seconds, deploy
to AWS when ready 2026/06/16 にプレビュー公開されたばかりTypeScript 製のオープンソースバックエ ンドフレームワーク 「アプリを書いたら、それがそのまま AWS のインフラになる」 IfC (Infrastructure from Code) という考え方に基づいている Building Blocks を組み合わせてバックエンドを構成する ローカルで完結して開発できる(AWS アカウント不要) 準備ができたらコード変更なしで AWS にデプロイ コード生成なしでエンドツーエンドの型安全 Blocks 自体は無料(使った AWS リソースの料金のみ) AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 4
Blocks とは ブロックとは、単一の機能に必要なすべて(クラウド リソース、ランタイム コー ド、ローカル実装)をバンドルした npm パッケージです。コード内でブロックを作 成すると、AWS Blocks
が対応する AWS リソースを設定し、権限を連携させ、開発 用のローカル実装を提供します。 AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 5
Building Blocks(プレビュー時点で約 20 種類) 分類 Building Block データ KVStore /
DistributedTable (DynamoDB) / DistributedDatabase (Aurora DSQL) / Database (Aurora Postgres) 認証 AuthBasic / AuthCognito / AuthOIDC リアルタイ ム Realtime (WebSocket) 非同期 AsyncJob / CronJob ストレー ジ FileBucket (S3) / AppSetting AI KnowledgeBase (RAG) / Agent (Bedrock) メール EmailClient (SES) 運用 Logger / Metrics / Tracer / Dashboard / Hosting / Pipeline AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 6
IfC (Infrastructure from Code) とは 書いたアプリのコードから、インフラを「導出」するという考え方 IaC(CDK/Terraform 等)はインフラをコードで書く IfC: アプリのコードを書いたら、必要なインフラが自動で決まる
AWS Blocks では CDK でインフラが作成される IfCを実現している仕組みについては k.goto さんの AWS CDK の目線で AWS Blocks を読み解く というブログ記事がわかりやすい AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 7
aws-blocks/index.ts バックエンドの入り口&アプリケーションコード(そこから導出されるインフラ定義) 。 // aws-blocks/index.ts - the IFC layer import
{ ApiNamespace, Scope, KVStore, AuthBasic } from '@aws-blocks/blocks'; const scope = new Scope('my-app'); // Infrastructure is derived from these instantiations const auth = new AuthBasic(scope, 'auth'); const todos = new KVStore(scope, 'todos', {}); // API methods are callable from the frontend export const api = new ApiNamespace(scope, 'api', (context) => ({ async createTodo(title: string) { const user = await auth.requireAuth(context); await todos.set(`${user.userId}:${title}`, { title, done: false }); }, })); export { auth }; AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 8
DistributedTable にアクセスしたいので、その定義を書く → DynamoDB テーブル が作成される カスタマイズが必要なときには index.cdk.ts で CDK
コードを直接書ける AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 9
開発体験のイメージ npm create @aws-blocks/blocks-app@latest my-app -- --template react cd my-app
npm run dev # → http://localhost:3000 npm run dev で数秒でフル機能のローカル環境が起動 DB・認証・リアルタイム・ファイル保存・ジョブが最初から入っている 各 Block はローカルではモックとして動き、デプロイで本物の AWS に入れ替わる AWS アカウントなしで、認証・DB・Pub/Sub付きのアプリが即起動する AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 10
アプリケーションコードを書く バックエンドの API は async 関数。関数内で、認証、DB処理、通知を実装するだけ。 export const api =
new ApiNamespace(scope, 'api', (context) => ({ async createTodo(title: string, priority = 2) { const user = await auth.requireAuth(context); // 認証 const todo = { userId: user.username, todoId: id(), title, /* ... */ }; await todos.put(todo); // DynamoDB へ await rt.publish('todos', user.username, { action: 'created', todoId }); // 通知 return todo; }, })); フロントエンドはバックエンドの API をそのまま import するだけ。コード生成なしで型安 全な API(JSON-RPC 2.0) 呼び出しができる。 import { api } from 'aws-blocks'; await api.createTodo('スライドを作る'); AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 11
動かす npm run dev でローカルのモックサーバが起動 npm run test:e2e で、ローカルのモックのまま API
を通しでテスト auth: sign up creates account and signs in todos: create with priority todos: list sorted by priority (secondary index) todos: toggle completion todos: concurrent toggle → conflict → retry succeeds tests 10 pass 10 fail 0 AWS につなげずに、認証・CRUD・楽観ロック・リアルタイムまで検証できる デプロイは npm run sandbox (sandbox)/ npm run deploy (本番)で同じコード のまま AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 12
Preview を触ってみた感想 ローカルだけで“動く”ので開発体験(フィードバック)は速い アプリケーションコードだけで、デプロイまでできる(IfC)のは新鮮 まだプレビュー(2026/07/04時点でv0.2.0) 。破壊的変更は覚悟 AWS Blocks を触ってみた JAWS-UG
福井 #3 AWS Summit のおみやげ話LT大会 13
まとめ AWS Blocks = ローカルで完結し、そのまま AWS にデプロイできる OSS フレームワー ク
Building Blocks を組み合わせるだけ・型安全・追加料金なし IfC (Infrastructure from Code) = アプリのコードからインフラを導出する考え方 CDK を意識せずに始められ、必要なら CDK を利用できる 実際に Todo アプリをローカルで作って動かせた(AWS アカウント不要) プレビューですが、ぜひ触ってみてほしいです。 AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 14
ご清聴ありがとうございました 質問・フィードバックお待ちしています! AWS Blocks: https://aws.amazon.com/jp/products/developer-tools/blocks/ X (Twitter): @fossamagna GitHub: @fossamagna
AWS Blocks を触ってみた JAWS-UG 福井 #3 AWS Summit のおみやげ話LT大会 15