...
1# Copyright 2022 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
15apiVersion: core.cnrm.cloud.google.com/v1alpha1
16kind: ServiceMapping
17metadata:
18 name: vpcaccess.cnrm.cloud.google.com
19 namespace: cnrm-system
20spec:
21 name: VPCAccess
22 version: v1beta1
23 serviceHostName: "vpcaccess.googleapis.com"
24 resources:
25 - name: google_vpc_access_connector
26 kind: VPCAccessConnector
27 idTemplate: "projects/{{project}}/locations/{{location}}/connectors/{{name}}"
28 idTemplateCanBeUsedToMatchResourceName: true
29 resourceAvailableInAssetInventory: true
30 locationality: regional
31 metadataMapping:
32 name: name
33 resourceID:
34 targetField: name
35 resourceReferences:
36 - tfField: project
37 key: projectRef
38 description: |-
39 Immutable. The project that this resource belongs to.
40 gvk:
41 kind: Project
42 version: v1beta1
43 group: resourcemanager.cnrm.cloud.google.com
44 - tfField: network
45 key: networkRef
46 description: |-
47 Immutable. Name or self_link of the VPC network. Required if 'ip_cidr_range' is set.
48 gvk:
49 kind: ComputeNetwork
50 version: v1beta1
51 group: compute.cnrm.cloud.google.com
52 targetField: self_link
53 - tfField: subnet.name
54 key: nameRef
55 description: |-
56 Immutable. Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is
57 https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}"
58 gvk:
59 kind: ComputeSubnetwork
60 version: v1beta1
61 group: compute.cnrm.cloud.google.com
62 - tfField: subnet.project_id
63 key: projectRef
64 description: |-
65 Immutable. Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued.
66 gvk:
67 kind: Project
68 version: v1beta1
69 group: resourcemanager.cnrm.cloud.google.com
70 hierarchicalReferences:
71 - type: project
72 key: projectRef
View as plain text