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 Directory ServiceとFSxをCLIでさわってみた / AWS Dire...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
める
September 02, 2021
Technology
640
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
AWS Directory ServiceとFSxをCLIでさわってみた / AWS Directry Service and FSx for Windows Server
2021/09/02 JAWS-UG CLI専門支部でのLT内容です。
める
September 02, 2021
More Decks by める
See All by める
aws loginがいいぞ / aws login is good
mel_27
0
61
AWSをCLIで理解したい! / I want to understand AWS using the CLI
mel_27
2
1.5k
AWS ドキュメントをあるいてみた / Walk on AWS documents
mel_27
0
230
Amazon FSx for ONTAPを 試してみた / Try Amazon FSx for ONTAP
mel_27
0
980
Other Decks in Technology
See All in Technology
SREでアラート疲れを 解決しよう!
kairim0
1
220
The seven pitfalls of AI (revised version)
ufried
0
300
Lambda MicroVMsが分からなすぎたので使い所を1から考えてみた
tsukuboshi
2
440
生成AIを使って「人が」考える技術 ― AI時代の人機共想と実践ノウハウ|UNITT AC2026
ishiirikie
0
570
購入ドメインでの課題と取り組み
ykagano
0
150
OSC2026on_the-world-is-waiting-for-your-voice.pdf
naruoga
0
360
LLM機能を自作して分かるSnowflake Cortex AIの強み
nayuts
0
330
20260930_Gemma4_Hands-on
tsho
0
240
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
100
freeeらしさをAIとともに作る / Creating the freee Experience with AI
ymrl
0
220
AI時代に必要な脅威モデリング― 変化の速度に負けない理解とリスク判断
masakane55
5
1.2k
Codex概要
ymiya55
0
480
Featured
See All Featured
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
720
Accessibility Awareness
sabderemane
1
240
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
620
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Technical Leadership for Architectural Decision Making
baasie
3
600
30 Presentation Tips
portentint
PRO
1
420
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
560
A Soul's Torment
seathinner
8
3.7k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Thoughts on Productivity
jonyablonski
76
5.4k
The SEO identity crisis: Don't let AI make you average
varn
0
580
Agile that works and the tools we love
rasmusluckow
331
22k
Transcript
AWS Directory Serviceと FSxをCLIでさわってみた める(@mel________27) JAWS-UG CLI専門支部 #224R 2021/09/02
Who am I? 名前:める (@mel________27) 所属:三重県の某SIer 業務:インフラエンジニア(今年6月~) 好きなAWSのサービス:Cloud9、CloudShell 2
AWS Directory Service とは Microsoft Active Directoryなどのディレクトリサービスを提供するサービス。 コマンド:ds Simple ADとMicrosoft
Active Directoryが作成できますが 今回はMicrosoft Active Directoryの話をします。 3
AWS Managed Microsoft AD とは MicrosoftのActive Directoryの機能を提供するマネージド型サービス。 Active Directoryとは Microsoftのディレクトリサービス。
Windows Serverがあれば機能を有効化するだけで使える。 ※Azure Active Directoryもある 4
Amazon FSxとは ファイルサーバのマネージド型サービス。 コマンド:fsx FSx for Windows ServerとFSx for Lustreがありますが
今回はFSx for Windows Serverの話をします。 5
構成図 亀田さん主催のハンズオン手順をもとにしています https://github.com/harunobukameda/Amazon-FSx-for-Windows-File-Server Amazon FSx for Windows File Server AWS
Managed Microsoft AD Amazon EC2 (AD管理用) ドメイン認証 ドメイン認証 ファイル共有 6
aws ds create-microsoft-ad \ --name ドメイン名(フル) \ --short-name NetBIOS名(短いドメイン名) \
--password Adminのパスワード \ --edition エディション(Standard/Enterprise) \ --vpc-settings VpcId=VPCID,SubnetIds=サブネットID1,サブネットID2 ※サブネットは複数AZを指定する必要がある。 Microsoft ADの作成コマンド 7
Microsoft ADの作成とSimple ADの作成でサブコマンドが違う! create-microsoft-ad サブコマンド →Microsoft ADを作成するためのコマンド create-directory サブコマンド →Simple
ADを作成するためのコマンド ※確認コマンドはどちらもdescribe-directories つまづきポイント① 8
その他 - 管理者として与えられるユーザはAdmin。(× Administrator) - ADの機能はWindows Server 2012 R2がベース。 -
AD本体のイベントログが見れない、など制限事項はいくつかあるので、 オンプレミスから移行する場合は現行の利用機能が使用できるか要確認。 - オンプレミスADの冗長設定としてDirectory Serviceを使用するのは無理そう。 (別ドメインを作って信頼関係を結ぶしかない) 9
その他 - EC2(Win SV)をドメインに追加する場合、マネコンだとドメインの指定があるが CLIでの作成時は指定できないようなので 作成したEC2にログインしてドメイン参加するしかなさそう。 10
aws fsx create-file-system \ --file-system-type ファイルシステム種別 (WINDOWS/LUSTRE) \ --storage-capacity ストレージ容量
\ --storage-type ストレージタイプ(HDD/SSD) \ --subnet-ids サブネットID1 サブネットID2 \ --tags Key=Name,Value=${FSX_TAG_NAME} \ --windows-configuration ActiveDirectoryId=ディレクトリID,DeploymentType=MULTI_AZ_1, PreferredSubnetId=優先サブネット,ThroughputCapacity=スループットキャパシティ ※windows-configurationは別ファイル(JSON)にして読み込んだほうがいいかも FSxの作成コマンド 11
aws fsx create-backup \ --file-system-id ファイルシステムID \ --tags Key=Name,Value=タグ名 ※バックアップの作成中にもう一度バックアップの作成コマンドを実行すると
エラーになる FSxのバックアップコマンド 12
つまづきポイント② 削除時のコマンドについて、最終バックアップの取得がデフォルトで有効なので ファイルシステムの作成に失敗したものを削除しようとするとエラーになった 明示的にバックアップのスキップを指定する必要がある (この時は別のVPCに存在するADを指定してしまったためエラー発生) 13
その他 - 自動バックアップについて 毎日のバックアップの時間のデフォルト値がまちまちなので 指定したほうがよさそう(作成タイミングに依存する?) 14
まとめ - CLIからDirectory Service(AWS Managed Microsoft AD)を作成した。 - CLIからFSx for
Windows Serverを作成した。 - AWS Managed Microsoft ADの制限事項については 利用する場合は要件にあうか確認が必要そう。 - (FSxでマネコンの一部の挙動が気になったこともあり) 今後もできるだけCLIを使っていきたい。 15
参考 亀田さん主催のハンズオン手順 https://github.com/harunobukameda/Amazon-FSx-for-Windows-File-Server [AWS Black Belt Online Seminar] AWS Managed
Microsoft AD https://aws.amazon.com/jp/blogs/news/webinar-bb-awsmanagedmicrosoftad-2021/ 16