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
You can use this module to create and configure virtual private endpoint gateways (https://cloud.ibm.com/docs/vpc?topic=vpc-ordering-endpoint-gateway) for an IBM Cloud service.
9
+
This module creates and configures virtual private endpoint gateways (https://cloud.ibm.com/docs/vpc?topic=vpc-ordering-endpoint-gateway) for an IBM Cloud service.
10
10
11
11
The module supports the following actions:
12
-
- Create reserved IP addresses and endpoint gateways
12
+
- Create virtual private endpoint gateways
13
+
- Create reserved IP addresses
13
14
- Attach endpoint gateways to reserved IP addresses
14
15
15
16
## Usage
@@ -68,7 +69,7 @@ You need the following permissions to run this module.
68
69
<!-- BEGIN EXAMPLES HOOK -->
69
70
## Examples
70
71
71
-
-[Examples](examples)
72
+
-[ End-to-end example](examples/default)
72
73
<!-- END EXAMPLES HOOK -->
73
74
74
75
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
This example creates the following infrastructure:
4
+
- A resource group, if one is not passed in.
5
+
- A VPC, if one is not passed in.
6
+
- The VPC is created with three subnets across the three availability zones of the region that is passed as input.
7
+
- A security group in the VPC.
8
+
- The security group is created with a single inbound rule that allows traffic from resources that are attached to the default VPC security group. This rule is added as an example.
9
+
- Two virtual private endpoint (VPE) gateways. By default, one VPE to COS and another VPE to Key Protect are created. You can change the defaults by using the `service_endpoints` input.
10
+
- Each of the two virtual private endpoint gateways are attached to the three VPC subnets.
11
+
- The new security group is attached to the two VPE gateways.
validate_vpc_inputs=var.vpc_id==null&&!var.create_vpc?tobool("var.create_vpc should be set to true if var.vpc_id is set to null") :true
21
-
# tflint-ignore: terraform_unused_declarations
22
-
validate_vpc_id_and_create_vpc_both_not_set_inputs=var.vpc_id!=null&& var.create_vpc?tobool("var.vpc_id cannot be set whilst var.create_vpc is set to true") :true
description="Name of the VPC where the Endpoint Gateways will be created. This value is used to dynamically generate VPE names."
30
+
description="Name of the VPC where the Endpoint Gateways will be created. This value is used to dynamically generate VPE names. It is also used to create a VPC when the vpc_id input is set to null."
31
31
type=string
32
-
default="my-vpc-instance"
32
+
default="vpc-instance"
33
33
}
34
34
35
35
variable"vpc_id" {
36
-
description="ID of the VPC where the Endpoint Gateways will be created"
36
+
description="ID of the VPC where the Endpoint Gateways will be created. Creates a VPC if set to null."
0 commit comments