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
AWS SDK触ってみる。
Search
jaxx2104
November 29, 2013
Programming
0
430
AWS SDK触ってみる。
AWS SDK for PHP2 を使って S3 に画像をアップしてみます。
jaxx2104
November 29, 2013
Tweet
Share
More Decks by jaxx2104
See All by jaxx2104
Relative CI が気になっている話
jaxx2104
0
460
デザインファイルにおける継続的インテグレーション
jaxx2104
2
380
漸進的な変更を支えるフロントエンド設計
jaxx2104
5
2.1k
価値あるフロントエンドデザイン領域開拓
jaxx2104
0
270
Gatsby と Netlify で JAMstack なメディア開発
jaxx2104
0
600
サイレントヒーローを作らない取り組み
jaxx2104
1
120
開発組織のメンバーからリーダーになって
jaxx2104
0
86
Nikuman
jaxx2104
0
300
レガシーなフロントエンド環境で心理的安全性を確保する / RecoChoku Tech Night #08
jaxx2104
0
300
Other Decks in Programming
See All in Programming
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
220
Behind VS Code Extensions for JavaScript / TypeScript Linnting and Formatting
unvalley
5
870
CQRS/ES avec Symfony, c’est (trop) bien !
jeremyfreeagent
1
640
エンターテイメント業界で利用されるAWS
demuyan
0
210
Tailwind CSSを本気でカスタマイズする方法
fsubal
13
5.1k
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
400
SwiftUI Performance 不要なViewの再描画と更新を抑える
bigamitiongit
1
160
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
26
8.1k
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
670
コードレビューで学ぶ!Kotlinオブジェクト指向デザインパターン
akkie76
2
190
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
620
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
230
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
77
42k
Six Lessons from altMBA
skipperchong
20
3k
Why Our Code Smells
bkeepers
PRO
331
56k
A better future with KSS
kneath
231
16k
The Illustrated Children's Guide to Kubernetes
chrisshort
30
46k
Fashionably flexible responsive web design (full day workshop)
malarkey
398
65k
Testing 201, or: Great Expectations
jmmastey
27
6.3k
Adopting Sorbet at Scale
ufuk
67
8.6k
Scaling GitHub
holman
457
140k
Reflections from 52 weeks, 52 projects
jeffersonlam
344
19k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
154
14k
Agile that works and the tools we love
rasmusluckow
324
20k
Transcript
"84ͷ4%,৮ͬͯΈΔ ༵ۚษڧձ 1311݄29༵ۚ
ͬͯΈΔͷ͕ૣ͍ʂ "84ʹ͍ͭͯ w͍Ζ͍Ζ͋ͬͯΑ͘Θ͔Μͳ͍ wͳΜ͔͍͢͜͝ͱ͕Ͱ͖ΔΒ͍͠ wొͯ͠ແྉ͕͋Δ 1311݄29༵ۚ
"84πʔϧ܈͕๛ AWS Console AWS SDK AWS CLI AWS Query API
1311݄29༵ۚ
ૹΔଆ wࠓճ4ͱ"844%,GPS1)1Λ ͬͯΈ·ͨ͠ɻ wΠϯετʔϧํ๏ IUUQEPDTBXTBNB[PODPNBXT TELQIQHVJEFMBUFTU JOTUBMMBUJPOIUNM 1311݄29༵ۚ
class SampleAws { // Amazon SDKのインスタンス private $obj = null;
/** * AWS にアクセスする際の鍵 * @return {object} instance */ public function getInstance() { if (is_null($this->obj)) { $this->obj = Aws::factory(array( 'key' => 'XXXXXXXXXXXXX', 'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'region' => 'ap-northeast-1' ))->get('s3'); } return $this->obj; } /** * s3に画像を保存 * @return {object} EndpointArns 全てのエンドポイント */ public function putObjectTest($tempFileName){ $this->getInstance()->putObject(array( 'Bucket' => 'jaxx2104', 'Key' => $tempFileName, TBNQMF 1311݄29༵ۚ
࣮ࡍʹͬͯΈ·͢ɻ 1311݄29༵ۚ
ऴΘΓͰ͢ 1311݄29༵ۚ