|
5 | 5 | * [What to expect](#what-to-expect) |
6 | 6 | * [Prerequisites](#prerequisites) |
7 | 7 | * [Usage](#usage) |
| 8 | +* [Terraform Overview](#terraform-overview) |
8 | 9 | * [Author Information](#author-information) |
9 | 10 | * [License](#license) |
10 | 11 |
|
@@ -101,7 +102,7 @@ git clone https://github.com/NetApp/FSx-ONTAP-samples-scripts.git |
101 | 102 |
|
102 | 103 | ### 2. Navigate to the directory |
103 | 104 | ```shell |
104 | | -cd Terraform/fsx-ontap-filesystem/standalone-module |
| 105 | +cd FSx-ONTAP-samples-scripts/Terraform/deploy-fsx-ontap/standalone-module |
105 | 106 | ``` |
106 | 107 |
|
107 | 108 | ### 3. Initialize Terraform |
@@ -137,17 +138,28 @@ You can see that Terraform recognizes the modules required by our configuration: |
137 | 138 | preferences and save the file. This will ensure that the Terraform code deploys resources according to your specifications. |
138 | 139 |
|
139 | 140 | **Make sure to replace the values with ones that match your AWS environment and needs.** |
| 141 | +Modify the remaining optional variables (e.g. defining AD) in the **`main.tf`** file and remove commenting |
| 142 | +where needed according to the explanations in-line. |
140 | 143 |
|
141 | | -- Modify the remaining optional variables in the **`main.tf`** file and remove commenting where needed according to the explanations in-line. |
| 144 | +### 5. Update Security Group |
| 145 | +A default security group is defined in the "security_groups.tf" file. At the top of |
| 146 | +that file you can see where you can specify either a CIDR block or a security group ID |
| 147 | +to allow access to the FSxN file system. Do not specify both, as it will cause |
| 148 | +the terraform deployment to fail. |
142 | 149 |
|
143 | | -### 5. Create a Terraform plan |
| 150 | +If you decide you don't want to use the security group, you can either delete the security_groups.tf file, |
| 151 | +or just rename it such that it doesn't end with ".tf" (e.g. security_groups.tf.kep). You will also need |
| 152 | +to update the `security_group_ids = [aws_security_group.fsx_sg.id]` line in the main.tf file |
| 153 | +to reference the security group(s) you want to use. |
| 154 | +
|
| 155 | +### 6. Create a Terraform plan |
144 | 156 | Run the following command to create an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure: |
145 | 157 | ```shell |
146 | 158 | terraform plan |
147 | 159 | ``` |
148 | 160 | Ensure that the proposed changes match what you expected before you apply the changes! |
149 | 161 |
|
150 | | -### 6. Apply the Terraform plan |
| 162 | +### 7. Apply the Terraform plan |
151 | 163 | Run the following command to execute the Terrafom code and apply the changes proposed in the `plan` step: |
152 | 164 | ```shell |
153 | 165 | terraform apply |
|
0 commit comments