|
| 1 | +# Copyright 2024 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +apiVersion: blueprints.cloud.google.com/v1alpha1 |
| 16 | +kind: BlueprintMetadata |
| 17 | +metadata: |
| 18 | + name: terraform-google-cloud-router |
| 19 | + annotations: |
| 20 | + config.kubernetes.io/local-config: "true" |
| 21 | +spec: |
| 22 | + info: |
| 23 | + source: |
| 24 | + repo: https://github.com/terraform-google-modules/terraform-google-cloud-router.git |
| 25 | + sourceType: git |
| 26 | + version: 6.0.2 |
| 27 | + actuationTool: |
| 28 | + flavor: Terraform |
| 29 | + version: ">= 1.3" |
| 30 | + description: {} |
| 31 | + content: |
| 32 | + subBlueprints: |
| 33 | + - name: interconnect_attachment |
| 34 | + location: modules/interconnect_attachment |
| 35 | + - name: interface |
| 36 | + location: modules/interface |
| 37 | + examples: |
| 38 | + - name: interconnect_attachment |
| 39 | + location: examples/interconnect_attachment |
| 40 | + - name: nat |
| 41 | + location: examples/nat |
| 42 | + - name: simple_example |
| 43 | + location: examples/simple_example |
| 44 | + interfaces: |
| 45 | + variables: |
| 46 | + - name: bgp |
| 47 | + description: BGP information specific to this router. |
| 48 | + varType: |- |
| 49 | + object({ |
| 50 | + asn = string |
| 51 | + advertise_mode = optional(string, "CUSTOM") |
| 52 | + advertised_groups = optional(list(string)) |
| 53 | + advertised_ip_ranges = optional(list(object({ |
| 54 | + range = string |
| 55 | + description = optional(string) |
| 56 | + })), []) |
| 57 | + keepalive_interval = optional(number) |
| 58 | + }) |
| 59 | + - name: description |
| 60 | + description: An optional description of this resource |
| 61 | + varType: string |
| 62 | + - name: name |
| 63 | + description: Name of the router |
| 64 | + varType: string |
| 65 | + required: true |
| 66 | + - name: nats |
| 67 | + description: NATs to deploy on this router. |
| 68 | + varType: |- |
| 69 | + list(object({ |
| 70 | + name = string |
| 71 | + nat_ip_allocate_option = optional(string) |
| 72 | + source_subnetwork_ip_ranges_to_nat = optional(string) |
| 73 | + nat_ips = optional(list(string), []) |
| 74 | + min_ports_per_vm = optional(number) |
| 75 | + max_ports_per_vm = optional(number) |
| 76 | + udp_idle_timeout_sec = optional(number) |
| 77 | + icmp_idle_timeout_sec = optional(number) |
| 78 | + tcp_established_idle_timeout_sec = optional(number) |
| 79 | + tcp_transitory_idle_timeout_sec = optional(number) |
| 80 | + tcp_time_wait_timeout_sec = optional(number) |
| 81 | + enable_endpoint_independent_mapping = optional(bool) |
| 82 | + enable_dynamic_port_allocation = optional(bool) |
| 83 | +
|
| 84 | + log_config = optional(object({ |
| 85 | + enable = optional(bool, true) |
| 86 | + filter = optional(string, "ALL") |
| 87 | + }), {}) |
| 88 | +
|
| 89 | + subnetworks = optional(list(object({ |
| 90 | + name = string |
| 91 | + source_ip_ranges_to_nat = list(string) |
| 92 | + secondary_ip_range_names = optional(list(string)) |
| 93 | + })), []) |
| 94 | +
|
| 95 | + })) |
| 96 | + defaultValue: [] |
| 97 | + - name: network |
| 98 | + description: A reference to the network to which this router belongs |
| 99 | + varType: string |
| 100 | + required: true |
| 101 | + - name: project |
| 102 | + description: The project ID to deploy to |
| 103 | + varType: string |
| 104 | + required: true |
| 105 | + - name: region |
| 106 | + description: Region where the router resides |
| 107 | + varType: string |
| 108 | + required: true |
| 109 | + outputs: |
| 110 | + - name: nat |
| 111 | + description: Created NATs |
| 112 | + - name: router |
| 113 | + description: Created Router |
| 114 | + requirements: |
| 115 | + roles: |
| 116 | + - level: Project |
| 117 | + roles: |
| 118 | + - roles/owner |
| 119 | + services: |
| 120 | + - cloudresourcemanager.googleapis.com |
| 121 | + - serviceusage.googleapis.com |
| 122 | + - compute.googleapis.com |
0 commit comments