You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* docs: update readme file
- Editorial updates for style
- Remove TOC because it's generated by GH
- Change from 3rd person to 2nd person (you)
* docs: update readme file and template
- Editorial updates for style
- Remove TOC because it's generated by GH
- Change from 3rd person to 2nd person (you)
- Update PR template to match module-template
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
4
-
List any dependencies that are required for this change.
3
+
Please include a summary of the change and which issue is fixed. Also, please include the motivation and context for the change. List any dependencies that are required for this change.
5
4
6
-
**Tick the relevant boxes:**
7
-
-[ ] Bug fix (non-breaking change which fixes an issue)
8
-
-[ ] New feature (non-breaking change which adds functionality)
5
+
**Check the relevant boxes:**
6
+
-[ ] Bug fix (nonbreaking change that fixes an issue)
7
+
-[ ] New feature (nonbreaking change that adds functionality)
9
8
-[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
10
-
-[ ] Examples / tests (addition or updates of examples or tests)
9
+
-[ ] Examples or tests (addition or updates of examples or tests)
11
10
-[ ] Documentation update
12
-
-[ ] CI related update (pipeline, etc)
11
+
-[ ] CI related update (pipeline, etc.)
13
12
14
-
### Checklist:
13
+
### Checklist
15
14
16
-
-[ ] If relevant, a test for the change has been added / updated as part of this PR.
17
-
-[ ] If relevant, documentation for the change has been added / updated as part of this PR.
15
+
-[ ] If relevant, a test for the change has been added or updated as part of this PR.
16
+
-[ ] If relevant, documentation for the change has been added or updated as part of this PR.
18
17
19
-
### Merge:
20
-
Merge using "Squash and merge" and ensure to use a relevant [conventional commit](https://www.conventionalcommits.org/) message based on the PR contents (this ultimately determines if a new version of the modules needs to be released, and if so, which semver number should be used).
18
+
### Merge
19
+
20
+
- Merge using "Squash and merge".
21
+
- Make sure to use a relevant [conventional commit](https://www.conventionalcommits.org/) message that is based on the PR contents. The commit message determines whether a new version of the modules needs to be released, and if so, which semver number to use).
This module creates underlying VPC network components:
7
+
This module creates the following IBM Cloud® Virtual Private Cloud (VPC) network components:
8
8
9
9
- VPC
10
-
- Public Gateways
10
+
- Public gateways
11
11
- Subnets
12
12
- Network ACLs
13
-
- VPN Gateways
14
-
- VPN Gateway Connections
13
+
- VPN gateways
14
+
- VPN gateway connections
15
15
16
16

17
17
18
-
## Table of Contents
19
-
20
-
1.[VPC](#vpc)
21
-
2.[Public Gateways](#public-gateways)
22
-
3.[Network ACLs](#network-acls)
23
-
4.[Subnets](#subnets)
24
-
1.[Address Prefixes](#address-prefixes)
25
-
2.[Subnets](#subnets-1)
26
-
5.[VPN Gateways](#vpn-gateways)
27
-
6.[Usage](#usage)
28
-
7.[Required IAM access policies](#required-iam-access-policies)
29
-
8.[Examples](#examples)
30
-
9.[Usage](#usage)
31
-
10.[Requirements](#requirements)
32
-
11.[Modules](#modules)
33
-
12.[Resources](#resources)
34
-
13.[Inputs](#inputs)
35
-
14.[Outputs](#outputs)
36
-
37
18
## VPC
38
19
39
-
This module creates a VPC in a resource group with optional Classic Access. The VPC and components are created in [main.tf](main.tf)
20
+
This module creates a VPC in a resource group, and supports classic access. The VPC and components are specified in the [main.tf](main.tf) file.
40
21
41
22
---
42
23
43
-
## Public Gateways
24
+
## Public gateways
44
25
45
-
This module allows a user to optionally create public gateways in the VPC in each of the three zones of the VPC's region.
26
+
You can optionally create public gateways in the VPC in each of the three zones of the VPC's region.
46
27
47
28
---
48
29
49
30
## Network ACLs
50
31
51
-
This module creates any number of network ACLs with any number of rules. *(Note: by default, VPC Network ACLs have a maximum of 25 rules.)*
32
+
You can create any number of network ACLs with any number of rules. By default, VPC network ACLs can have no more than 25 rules.
52
33
53
34
---
54
35
55
36
## Subnets
56
37
57
-
The [subnet.tf](./subnet.tf) file allows users to create subnets in 1, 2, or 3 zones. Public gateways can be optionally attached to each subnet. Each subnet can also be given as a parameter any ACL created within this module.
38
+
You can create up to three zones in the [subnet.tf](subnet.tf) file. You can optionally attach public gateways to each subnet. And you can provide an ACL as a parameter to each subnet if the ACL is created by the module.
58
39
59
-
### Address Prefixes
40
+
### Address prefixes
60
41
61
-
A CIDR block is created in the VPC for each subnet that will be provisioned
42
+
A CIDR block is created in the VPC for each subnet that is provisioned.
62
43
63
-
### Subnets
44
+
### Subnets variable
64
45
65
-
The type of the `subnets` variable is as follows:
46
+
The following example shows the `subnets` variable.
66
47
67
48
```terraform
68
49
object({
@@ -87,7 +68,7 @@ object({
87
68
})
88
69
```
89
70
90
-
While `zone-1`, `zone-2`, and `zone-3` are all lists, these lists are converted into an object before the resources are provisioned. This ensures that the addition or deletion of subnets will affect only the added or deleted subnets. Example:
71
+
`zone-1`, `zone-2`, and `zone-3` are lists, but are converted to objects before the resources are provisioned. The conversion ensures that the addition or deletion of subnets affects only the added or deleted subnets, as shown in the following example.
This module can create any number of VPN gateways on any number of subnets using the `vpn_gateways` variable. For more about VPN gateways on VPC[read the documentation here](https://cloud.ibm.com/docs/vpc?topic=vpc-using-vpn)
86
+
You can create any number of VPN gateways on your subnets by using the `vpn_gateways` variable. For more information about VPN gateways on VPC, see [About site-to-site VPN gateways](https://cloud.ibm.com/docs/vpc?topic=vpc-using-vpn) in the IBM Cloud docs.
106
87
107
88
---
108
89
@@ -130,11 +111,11 @@ module vpc {
130
111
You need the following permissions to run this module.
0 commit comments