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
170223_aws_handson
Search
tutida
March 22, 2017
Technology
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
170223_aws_handson
tutida
March 22, 2017
More Decks by tutida
See All by tutida
仕様の達成度とは別の軸も大事にしたい~OSEKKAI文化で作るプロジェクトの納得感~
tutida
0
130
Larvel Octane を AWS Fargate で動かしてみる
tutida
2
1.2k
Laravel x Inertia.js 現代のモノリス によるお手軽 SPA 開発
tutida
4
3.8k
JAWS DAYS 2020 | サーバレスの新しいデータストアの選択肢 S3 Select の魅力
tutida
2
2.7k
180405_AWS_Deep_Night_in_Fukuoka_part2.pdf
tutida
0
160
event
tutida
0
190
[ fukuoka.php LT ] 新人のPHPExcel奮闘記
tutida
0
1k
Other Decks in Technology
See All in Technology
三人寄ればチューリング完全
puhitaku
6
3.2k
暗号化?某ファイルストレージはどうなるの!? 3rd Partyとうまく付き合う秘密度ラベル設計
kasada
0
200
[ホンマでっか SRE] あなたはなぜ SRE に?
_awache
0
150
Rust×eBPFでEDRっぽいものをつくる
sunlife3
2
970
AIに持続⼒を与える 判断の⻑期記憶設計
eiei114
1
710
8bit CPU 2026
koba789
7
2.9k
AWSとGitHub Actionsの責任境界と 組織で安全に使用する取り組み
nealle
0
150
顧客の要望は2次情報である 〜アンテナを張るFDEの構造論〜
noriakioji
2
510
dbt と Snowflake と tag
kevinrobot34
1
250
会計事務所と顧問先の契約関係をOIDC・OAuthで表現する
terara
0
330
Master Dataグループ紹介資料
sansan33
PRO
1
4.8k
AWSとAzureのマルチクラウド活用における強い味方___AWS_Kiroを使った二刀流スキル作成.pdf
duelist2020jp
0
110
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.8k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
480
Marketing to machines
jonoalderson
1
5.7k
Documentation Writing (for coders)
carmenintech
77
5.5k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
900
Building AI with AI
inesmontani
PRO
1
1.2k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
450
Transcript
2017/03/23 ハンズオン
本日のハンズオン ① 仮想サーバにSSH接続 ② AmazonS3を使ったファイル取得・閲覧 2
① 仮想サーバにSSH接続 1. VPC, Subet, Internet Gatewayの設置 1. VPCの作成 2.
Subnetの作成 3. Internet GatewayをVPCに設置 4. VPCのルートテーブルにInternet Gatewayを追加 2. EC2インスタンス(仮想サーバ)の起動 1. AMIでAmazon Linux, t2.micro を選択 2. VPC,Subnetを選択・「自動割り当てパブリックIP」を有効 3. 細かい設定はデフォルトのまま進める 4. Key Pairを新規に作成しローカルにダウンロード 3. EC2インスタンスへSSH接続 1. 割り当てられたIPアドレスの確認 2. ダウンロードしたKey PairとIPアドレスを使ってSSH接続 1. ユーザは”ec2-user” 参考リンク:http://dev.classmethod.jp/cloud/aws/aws-beginner-ec2-ssh/ 3
① 仮想サーバにSSH接続 1.VPC, Subnet, Internet Gatewayの設置 4
① 仮想サーバにSSH接続 1.VPC, Subnet, Internet Gatewayの設置 VPCの作成 5
① 仮想サーバにSSH接続 1.VPC, Subnet, Internet Gatewayの設置 Subnetの作成 6
① 仮想サーバにSSH接続 1.VPC, Subnet, Internet Gatewayの設置 Internet GatewayをVPCに設置 7
① 仮想サーバにSSH接続 1.VPC, Subnet, Internet Gatewayの設置 VPCのルートテーブルにInternet Gatewayを追加 8
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 9
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 AMIでAmazon Linux, t2.micro を選択 10
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 VPC,Subnetを選択・「自動割り当てパブリックIP」を有効 11
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 細かい設定はデフォルトのまま進める 12
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 Key Pairを新規に作成しローカルにダウンロード 13
① 仮想サーバにSSH接続 2.EC2インスタンス(仮想サーバ)の起動 14
① 仮想サーバにSSH接続 3.EC2インスタンスへSSH接続 15
① 仮想サーバにSSH接続 3.EC2インスタンスへSSH接続 割り当てられたIPアドレスの確認 16
① 仮想サーバにSSH接続 3.EC2インスタンスへSSH接続 ダウンロードしたKey PairとIPアドレスを使ってSSH接続 ユーザは”ec2-user”としてログイン 参考リンク:http://dev.classmethod.jp/cloud/aws/aws-beginner-ec2-ssh/ ・Macの方はTerminal ・Windowsの方はTera Termなど
17
② AmazonS3を使ったファイル取得・閲覧 1. S3 Bucketの作成 1. 好きな名前でBucketを作成(AWS上で一意な名前の必要あり) 2. 静的Webサイトホスティングの設定 1.
タブ「プロパティ」 > “ Static website hosting ” > “このバケットを使用してウェブサイトをホストする” > インデックスドキュメント “index.html” 2. タブ「アクセス権限」 > バケットポリシー 3. Bucket内部のアクセスしたいオブジェクト「リンク」をクリック 18 { "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadForGetBucketObjects", "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject" ], "Resource": [ “arn:aws:s3:::バケット名/*" ] } ] }
1.S3 Bucketの作成 19 ② AmazonS3を使ったファイル取得・閲覧
1.S3 Bucketの作成 20 ② AmazonS3を使ったファイル取得・閲覧
1.S3 Bucketの作成 ”index.html”という名前のファイルを以下の内容で作成して、 S3にアップロードしてみましょう 21 ② AmazonS3を使ったファイル取得・閲覧 Index.html <!DOCTYPE html>
<html> <head> <meta charset="UTF-8"> <title>S3 Sample</title> </head> <body> <p>S3 Sample</p> </body> </html>
2. 静的Webサイトホスティングの設定 1. タブ「プロパティ」 > “ Static website hosting ”
> “このバケットを使用してウェブサイトをホストする” > インデックスドキュメント “index.html 22 ② AmazonS3を使ったファイル取得・閲覧
2. 静的Webサイトホスティングの設定 2. タブ「アクセス権限」 > バケットポリシー { "Version": "2012-10-17", "Statement":
[ { "Sid": "PublicReadForGetBucketObjects", "Effect": "Allow", "Principal": "*", "Action": [ "s3:GetObject" ], "Resource": [ “arn:aws:s3:::バケット名/*" ] } ] } 23 ② AmazonS3を使ったファイル取得・閲覧
2. 静的Webサイトホスティングの設定 3. Bucket内部のアクセスしたいオブジェクト「リンク」をクリック 24 ② AmazonS3を使ったファイル取得・閲覧