|
| 1 | +# Configuring complex inputs for Virtual Private Endpoint Gateways |
| 2 | + |
| 3 | +Several optional input variables in the IBM Cloud [VPE Gateway deployable architecture](https://cloud.ibm.com/catalog#deployable_architecture) use complex object types. You specify these inputs when you configure deployable architecture. |
| 4 | + |
| 5 | +You can specify a set of IBM Cloud services to create VPE endpoint gateways for. At least one of `cloud_services` or `cloud_service_by_crn` must be specified. |
| 6 | + |
| 7 | +- [Cloud Services by name](#cloud-services) (`cloud_services`) |
| 8 | +- [Cloud Services by CRN](#cloud-service-by-crn) (`cloud_service_by_crn`) |
| 9 | +- [Reserved IPs](#reserved-ips) (`reserved_ips`) |
| 10 | + |
| 11 | +## Cloud Services by name <a name="cloud-services"></a> |
| 12 | + |
| 13 | +You can specify a set of IBM Cloud services by service name to create VPE Endpoint Gateways for. Use `cloud-services` for services that offer general service endpoints. |
| 14 | + |
| 15 | +- Variable name: `cloud_services`. |
| 16 | +- Type: A list of objects that represent IBM Cloud services |
| 17 | +- Default value: An empty list (`[]`) |
| 18 | + |
| 19 | +### Options for cloud_service |
| 20 | + |
| 21 | +- `service_name` (required): The IBM Cloud service name. |
| 22 | +- `vpe_name` (optional): Full control on the VPE name. If not specified, the VPE name will be computed based on prefix, vpc name and service name. |
| 23 | +- `allow_dns_resolution_binding` (optional): Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true. |
| 24 | + |
| 25 | +### Example service credential |
| 26 | + |
| 27 | +```hcl |
| 28 | +[ |
| 29 | + { |
| 30 | + "service_name": "kms", |
| 31 | + "vpe_name": "kms-gateway", |
| 32 | + "allow_dns_resolution_binding": false |
| 33 | + }, |
| 34 | + { |
| 35 | + "service_name": "cloud-object-storage" |
| 36 | + } |
| 37 | +] |
| 38 | +``` |
| 39 | + |
| 40 | +## Cloud Service by CRN <a name="cloud-service-by-crn"></a> |
| 41 | + |
| 42 | +You can specify a set of IBM Cloud services by CRN to create VPE Endpoint Gateways for. Use `cloud-service-by-crn` for services that generate instance specific VPE gateway targets. |
| 43 | + |
| 44 | +- Variable name: `cloud_service_by_crn`. |
| 45 | +- Type: A list of objects that represent IBM Cloud services |
| 46 | +- Default value: An empty list (`[]`) |
| 47 | + |
| 48 | +### Options for cloud_service_by_crn |
| 49 | + |
| 50 | +- `crn` (required): IBM Cloud service CRN. |
| 51 | +- `vpe_name` (optional): Full control on the VPE name. If not specified, the VPE name will be computed based on prefix, vpc name and service name. |
| 52 | +- `service_name` (optional): |
| 53 | +- `allow_dns_resolution_binding` (optional): Indicates whether to allow this endpoint gateway to participate in DNS resolution bindings with a VPC that has dns.enable_hub set to true. |
| 54 | + |
| 55 | +### Example cloud_service_by_crn |
| 56 | + |
| 57 | +```hcl |
| 58 | +[ |
| 59 | + { |
| 60 | + "crn": "crn:version:cname:ctype:service-name:location:scope:service-instance::", |
| 61 | + "vpe_name": "service-gateway", |
| 62 | + "service_name": "service-name", |
| 63 | + "allow_dns_resolution_binding": false |
| 64 | + }, |
| 65 | + { |
| 66 | + "crn": "crn:version:cname:ctype:service-name:location:scope:service-instance::" |
| 67 | + } |
| 68 | +] |
| 69 | +``` |
| 70 | + |
| 71 | +## Reserved IPs <a name="reserved-ips"></a> |
| 72 | + |
| 73 | +Map of existing reserved IP names and values. If you wish to create your reserved ips independently and not create new ones you can first run the `reserved-ips` submodule and then copy the output `reserved_ip_map` here." |
| 74 | + |
| 75 | +- Variable name: `reserved_ips` |
| 76 | +- Type: A map of existing reserved IP names and ids |
| 77 | +- Default value: An empty map (`{}`) |
| 78 | + |
| 79 | +### Example reserved IPs |
| 80 | + |
| 81 | +The following example shows values for both disk and memory for the `reserved_ips` input. |
| 82 | + |
| 83 | +```hcl |
| 84 | +{ |
| 85 | + "vpc-cloud-object-storage-1" = "0717-12345678-1234-1234-1234-123456789abc" |
| 86 | + "vpc-cloud-object-storage-2" = "0727-12345678-1234-1234-1234-123456789abc" |
| 87 | + "vpc-cloud-object-storage-3" = "0737-12345678-1234-1234-1234-123456789abc" |
| 88 | + "vpc-kms-1" = "0717-12345678-1234-1234-1234-123456789abc" |
| 89 | + "vpc-kms-2" = "0727-12345678-1234-1234-1234-123456789abc" |
| 90 | + "vpc-kms-3" = "0737-12345678-1234-1234-1234-123456789abc" |
| 91 | +} |
| 92 | +``` |
0 commit comments