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
Bref Cloudに入門する / Getting Started with Bref Cloud
Search
デロ
March 26, 2025
Programming
0
11
Bref Cloudに入門する / Getting Started with Bref Cloud
デロ
March 26, 2025
Tweet
Share
More Decks by デロ
See All by デロ
リリースされたばかりのLaravel Cloudを触ってみた / try-the-just-released-Laravel-cloud
dero1to
0
33
PHPを使ってFFmpegに入門してみる / Introduction to FFmpeg using PHP
dero1to
0
11
ISUCON、今年も参加してみた / ISUCON, I challenged it again this year.
dero1to
0
220
カンファレンスの「アレ」Webでなんとかしませんか? / Conference “thing” Why don't you do something about it on the Web?
dero1to
2
210
JetBrains Plugins
dero1to
0
48
私が技術イベントで 配信をする理由 / Why I live-stream technical events
dero1to
0
250
技術イベントをもっと低遅延でお届けする技術
dero1to
0
54
JetBrainsIDEに入門してみた
dero1to
0
12
技術カンファレンスの配信をイチからやってみた!
dero1to
0
180
Other Decks in Programming
See All in Programming
状態と共に暮らす:ステートフルへの挑戦
ypresto
1
270
サービスレベルを管理してアジャイルを加速しよう!! / slm-accelerate-agility
tomoyakitaura
1
180
gen_statem - OTP's Unsung Hero
whatyouhide
1
200
アプリを起動せずにアプリを開発して品質と生産性を上げる
ishkawa
0
2.7k
Signal-Based Data FetchingWith the New httpResource
manfredsteyer
PRO
0
170
Bedrock×MCPで社内ブログ執筆文化を育てたい!
har1101
6
1k
Java 24まとめ / Java 24 summary
kishida
3
500
Compose Hot Reload is here, stop re-launching your apps! (Android Makers 2025)
zsmb
1
500
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
0
110
PHPバージョンアップから始めるOSSコントリビュート / how2oss-contribute
dmnlk
1
1k
API for docs
soutaro
2
1.2k
設計の本質:コード、システム、そして組織へ / The Essence of Design: To Code, Systems, and Organizations
nrslib
1
150
Featured
See All Featured
Adopting Sorbet at Scale
ufuk
76
9.3k
GraphQLとの向き合い方2022年版
quramy
46
14k
How GitHub (no longer) Works
holman
314
140k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
104
19k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
13
670
Why You Should Never Use an ORM
jnunemaker
PRO
55
9.3k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.4k
Side Projects
sachag
452
42k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.2k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.4k
Transcript
Bref Cloudに入門する PHP勉強会@東京#174 デロ (@dero1to)
@dero1to ▪ 所属 株式会社キュービック Webエンジニア 新卒3年目 ▪ 技術 Ruby、Rails、PHP、Laravel ▪
趣味 ドライブ、ダーツ、アニメ、自宅鯖 カンファレンスのスタッフ、イベントの配信 ▪ 自称 カンファレンスジャンキー デロ ▪ 運営 2 ▪ 所属
Bref 知ってますか? 3
4
Brefとは PHPアプリケーションを AWS Lambdaなどのサーバーレス環境で動作させるためのツール Brefは、AWS Lambdaが標準でPHPをサポートしていない問題を解決 Serverless FrameworkやAWS CDKと組み合わせて 簡単にデプロイできる
5
Brefとは AWS LambdaにはPHP Runtimeがない 6
Brefとは PHP Runtimeがないので、 Amazon LinuxをベースのRuntimeとして、 その上にPHP 8.4 fpm などを構築したものを Brefが提供してくれている
7 Amazon Linux php-84-fpm Lambda Layer Lambda Runtime Lambda
Brefのデプロイ 8 or Serverless Framework AWS CDK
便利なツールなんですが。。 9
Bref Cloud 10 NEW
Bref Cloud 11 3月21日にリリース
Bref Cloud 12 3月21日にリリース ・AWS 認証情報の処理 ・複数の AWS アカウント ・ダッシュボード
・ログ ・メトリック
Brefの利用開始までが わかりやすくなった 13
これまでのBref ①Serverless CLIを入れる ②作成したアプリケーションにBrefのパッケージを入れる ②AWS CLIを入れる ③AWS Access Keyを発行する(ロールorユーザーを作成している前提) ④AWS
CLIのconfigにAccess Keyを設定 ⑤serverless.ymlを作成 … 14
これまでのBref ①Serverless CLIを入れる ②作成したアプリケーションにBrefのパッケージを入れる ②AWS CLIを入れる ③AWS Access Keyを発行する(ロールorユーザーを作成している前提) ④AWS
CLIのconfigにAccess Keyを設定 ⑤serverless.ymlを作成 … 15
Bref使いたいだけなのに。。 16
Bref Cloudになると。。 17
Bref Cloud ①Bref Cloudアカウントを作る ②CfnでBref CloudとAWSアカウントの認証情報を作る ③作成したアプリケーションにBrefのパッケージを入れる ④serverless.ymlを作成 ⑤デプロイ! 18
Bref Cloud ①Bref Cloudアカウントを作る ②CfnでBref CloudとAWSアカウントの認証情報を作る ③作成したアプリケーションにBrefのパッケージを入れる ④serverless.ymlを作成 ⑤デプロイ! 19
AWSの操作はここだけ!
やってみよう (一部画像) 20
21
22
23
24
25
26
27
28 AWSアカウントに 自分で名前をつける→ Cfnの出力に記載された RoleARN→
ここからは実際にデモ 29
Laravel Symfony などにも対応している 30
が、 31
時間が足りず うまく動きませんでした 32
試してみてね! 33