|
6 | 6 | Before you start with Network Creation, make sure you have run 'Fetch Compartments OCIDs to variables file'.
|
7 | 7 |
|
8 | 8 | ### 1. Create Network
|
9 |
| -Follow the below steps to create Network that includes VCNs, Subnets, DHCP, DRG, Security List, Route Tables, DRG Route Tables, NSGs, etc. |
| 9 | +Creation of Networking components using Automation Toolkit involes four simple steps. |
| 10 | + - Feeding the details of networking resources to Excel. |
| 11 | + - Running the toolkit to generate auto.tfvars. |
| 12 | + - Executing Terraform commands to provision the resources in OCI. |
| 13 | + - Exporting the details of Security Rules and Route Rules to CD3 Excel Sheet. |
| 14 | + |
| 15 | +Below are the steps in detail to create Network that includes VCNs, Subnets, DHCP, DRG, Security List, Route Tables, DRG Route Tables, NSGs, etc. |
10 | 16 |
|
11 | 17 | 1. Choose appropriate excel sheet from [Excel Templates](/cd3_automation_toolkit/documentation/user_guide/Essentials_of_Automation_Toolkit.md#excel-sheet-templates) and fill the required Network details in the Networking Tabs - VCNs, DRGs, VCN Info, DHCP, Subnets, NSGs tabs.
|
12 | 18 |
|
@@ -39,11 +45,24 @@ Follow the below steps to create Network that includes VCNs, Subnets, DHCP, DRG,
|
39 | 45 |
|
40 | 46 | This completes the steps for Creating the Network in OCI and exporting the default rules to the CD3 Excel Sheet using the Automation Toolkit.
|
41 | 47 |
|
| 48 | +### 1a. Use an existing DRG in OCI while creating the network |
| 49 | +In some scenarios, a DRG has already been created in the tenancy and rest of the Network components still need to be created. In such cases, generate the networking related tfvars using same process mentioned above till Step 4. |
| 50 | + |
| 51 | + - For Step 5, Navigate to the outdir path and execute the terraform commands:<br> |
| 52 | + <br>_terraform init_ |
| 53 | + <br>_terraform import "module.drgs[\"<<drgs terraform variable name>>\"].oci_core_drg.drg" <<drg-ocid>>_ |
| 54 | + <br> → This will Import the DRG into your state file. |
| 55 | + _terraform plan_ |
| 56 | + <br> → Terraform Plan will indicate to add all the other components except DRG. |
| 57 | + <br>_terraform apply_ |
| 58 | + |
| 59 | + Continue executing the remaining steps of [Create Network](#1-create-network). |
| 60 | + |
42 | 61 | ### 2. Modify Network
|
43 | 62 |
|
44 |
| -Follow the below steps to add a new or modify the existing Networking components - VCNs, Subnets, DHCP and DRG. |
| 63 | +Follow the below steps to add a new or modify the existing Networking components like the VCNs, Subnets, DHCP and DRG. |
45 | 64 |
|
46 |
| -1. Modify your excel sheet to update required data in the Tabs - VCNs, DRGs, VCN Info, DHCP and Subnets. |
| 65 | +1. Modify your excel sheet to update required data in the Tabs - VCNs, DRGs, VCN Info, DHCP and Subnets. |
47 | 66 |
|
48 | 67 | 2. Execute the _setupOCI.py_ file with _non_gf_tenancy_ parameter value to _false_:
|
49 | 68 |
|
@@ -154,18 +173,6 @@ Follow the below steps to update NSGs.
|
154 | 173 | This completes the modification of NSGs in OCI. Verify the components in console.
|
155 | 174 |
|
156 | 175 |
|
157 |
| -### 6. Use an existing DRG in OCI while creating the network |
158 |
| -In some scenarios, a DRG has already been created in the tenancy and rest of the Network components still need to be created. In such cases, generate the networking related tfvars using same process mentioned above till Step 4. |
159 |
| - |
160 |
| -For Step5, Navigate to the outdir path and execute the terraform commands:<br> |
161 |
| - <br>_terraform init_ |
162 |
| - <br>_terraform import "module.drgs[\"<<drgs terraform variable name>>\"].oci_core_drg.drg" <<drg-ocid>>_ |
163 |
| - <br> → This will Import the DRG into your state file. |
164 |
| - _terraform plan_ |
165 |
| - <br> → Terraform Plan will indicate to add all the other components except DRG. |
166 |
| - <br>_terraform apply_ |
167 |
| - |
168 |
| - |
169 | 176 | <br><br>
|
170 | 177 | <div align='center'>
|
171 | 178 |
|
|
0 commit comments