= フェーズ 1 - Amazon FSx for Windows File Server環境のデプロイ
:toc:
:icons:
:linkattrs:
:imagesdir: ../resources/images


== 概要

Region 1環境のデプロイ - Amazon FSx for Windows File Server環境。 以下の”フェーズ 1 構成図” を参照して下さい。
このフェーズでのワークショップ環境の構築には、約30分かかります。

== フェーズ 1 構成図

image::fsx-gateway-workshop-architecture-phase-1.png[title="Amazon FSx for Windows File Server Workshop Architecture", align="center"]

=== AWS CloudFormationを使った環境のデプロイ

重要: AWSにデプロイボタンをクリックする前に、以下の手順をお読みいただき、クイックビデオをご覧ください。

image::phase-1-deploy-fsxw.gif[title="ステップバイステップのクイックビデオ", align="left", width=600]

. "Deploy to AWS"ボタンをクリックし、CloudFormationのプロンプトに従って開始します。
+
Amazon FSxは現在、すべての商用AWSリージョンで利用可能です。（一部新規リージョンを除く）
+
現在、以下のアベイラビリティーゾーンでは、ファイルシステムの作成はサポートされていません:
+
[cols="1,1,2", options="header"]
|===
|Region | Availability Zone ID | Mapping
| *N. Virginia* (us-east-1)
| *use1-az3*
| Open the link:https://us-east-1.console.aws.amazon.com/vpc/home?region=us-east-1#subnets:[us-east-1 VPC] console for AZ mapping.

| *Oregon* (us-west-2)
| *usw2-az4*
| Open the link:https://us-west-2.console.aws.amazon.com/vpc/home?region=us-west-2#subnets:[us-west-2 VPC] console for AZ mapping.

| *Sydney* (ap-southeast-2)
| *apse2-az3*
| Open the link:https://ap-southeast-2.console.aws.amazon.com/vpc/home?region=ap-southeast-2#subnets:[ap-southeast-2 VPC] console for AZ mapping.

| *Tokyo* (ap-northeast-1)
| *apne1-az3*
| Open the link:https://ap-northeast-1.console.aws.amazon.com/vpc/home?region=ap-northeast-1#subnets:[ap-northeast-1 VPC] console for AZ mapping.

| *Frankfurt* (eu-central-1)
| *euc1-az1*
| Open the link:https://eu-central-1.console.aws.amazon.com/vpc/home?region=eu-central-1#subnets:[eu-central-1 VPC] console for AZ mapping.

|===
+
CloudFormationのスタック作成ウィザードでアベイラビリティーゾーンを選択する際には、上記のアベイラビリティーゾーンIDにマッピングされたアベイラビリティーゾーンを選択しないように注意してください。
+
TIP: *Deploy to AWS* ボタンを右クリックして、リンクを新しいタブまたはウィンドウで開くと、このgithubチュートリアルとAWSコンソールの間を簡単に移動できます。
+
|===
|Region | 新規VPCを使った起動テンプレート
| *N. Virginia* (us-east-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Ohio* (us-east-2)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *N. California* (us-west-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Oregon* (us-west-2)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Africa (Cape Town)* (af-south-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=af-south-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Hong Kong* (ap-east-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=ap-east-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Mumbai* (ap-south-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Seoul* (ap-northeast-2)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Singapore* (ap-southeast-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Sydney* (ap-southeast-2)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Tokyo* (ap-northeast-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Canada* (ca-central-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Frankfurt* (eu-central-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Ireland* (eu-west-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *London* (eu-west-2)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Milan* (eu-south-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=eu-south-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Paris* (eu-west-3)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Stockholm* (eu-north-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *Middle East (Bahrain)* (me-south-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=me-south-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]

| *São Paulo* (sa-east-1)
a| image::deploy-to-aws.png[link=https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/new?stackName=fsx-gateway-workshop-fsxw-environment&templateURL=https://s3.amazonaws.com/amazon-fsx/workshop/fsx-file-gateway/templates/fsx-gateway-workshop-fsxw-environment.yaml]
|===
+
. *Prerequisite - Prepare template* ページのデフォルトを受け入れ、"Next"をクリックします。
+
. デフォルトスタック名を受け入れ、"Next"をクリックします。 以下を参考にして全てのパラメーターを入力して下さい。
+
[cols="3,10"]
|===
| *VPC CIDR*
a| VPCに使用するCIDRを選択します。このCIDRブロックは、フェーズ2-リージョン2のCIDRブロックと重複してはいけません。

| *Availability Zones*
a| VPCのアベイラビリティーゾーンを2つ選択します。

| *Instance Type*
a| デフォルトを受け入れます。

| *Key Pair*
a| 既存のキーペアを選択して下さい。

|===
+
. すべてのパラメータの値を入力した後に、"Next"をクリックして下さい。
. *Configure stack options* と *Advanced options* セクションのデフォルト値を受け入れ、"Next" をクリックします。
. CloudFormationのスタック設定を確認します。
. ページ下部の青い *Capabilities* ボックスのチェックボックスをチェックしてください。
+
image::cloudformation-capabilities.png[align="left", width=420]
+
. "Create stack"をクリックして下さい。

約30分後にデプロイが完了します。

Microsoft Active Directoryリソースが地域1で"Active"になるまで次のセクションに移らないで下さい。（約20分かかります）

. AWS-Managed Microsoft Active DirectoryのDirectory IDを見つけます。CloudFormationスタックウィンドウから、"Resources"タブをクリックして、Logical ID *Directory*が表示されるまでスクロールダウンします。対応する物理ID（例：d-9067664e43）をメモします。
. link:https://console.aws.amazon.com/directoryservicev2/[Amazon Directory Service] のコンソールから、前のステップで取得したDirectory IDのStatusを確認します。StatusがActiveとなっていれば次のセクションに進みます。

== 次のセクション

下のボタンをクリックすると、次のセクションに進みます。

image::deploy-fsx-gateway-environment.png[link=../03-deploy-fsx-gateway-environment/, align="right",width=420]
