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
@@ -72,6 +80,8 @@ And then, you should pass the service account credentials for running inspec by
72
80
73
81
-`GOOGLE_APPLICATION_CREDENTIALS`
74
82
83
+
The project used for testing needs the Cloud Resource Manager API service enabled, and the service account should be assigned `roles/compute.networkAdmin` (in addition to `roles/cloudsql.admin`) to instantiate the VPC required in the tests.
MySQL [Private IP](https://cloud.google.com/sql/docs/mysql/private-ip)
4
+
configurations require a special peering between your VPC network and a
5
+
VPC managed by Google. The module supports creating such a peering.
6
+
7
+
It is sufficient to instantiate this module once for all MySQL instances
8
+
that are connected to the same VPC.
9
+
10
+
> NOTE: See the linked [documentation](https://cloud.google.com/sql/docs/mysql/private-ip)
11
+
> for all requirements for accessing a MySQL instance via its Private IP.
12
+
13
+
[^]: (autogen_docs_start)
14
+
15
+
## Inputs
16
+
17
+
| Name | Description | Type | Default | Required |
18
+
|------|-------------|:----:|:-----:|:-----:|
19
+
| address | First IP address of the IP range to allocate to CLoud SQL instances and other Private Service Access services. If not set, GCP will pick a valid one for you. | string |`""`| no |
20
+
| ip\_version | IP Version for the allocation. Can be IPV4 or IPV6. | string |`""`| no |
21
+
| labels | The key/value labels for the IP range allocated to the peered network. | map |`<map>`| no |
22
+
| prefix\_length | Prefix length of the IP range reserved for Cloud SQL instances and other Private Service Access services. Defaults to /16. | string |`"16"`| no |
23
+
| project\_id | The project ID of the VPC network to peer. This can be a shared VPC host projec. | string | n/a | yes |
24
+
| vpc\_network | Name of the VPC network to peer. | string | n/a | yes |
25
+
26
+
## Outputs
27
+
28
+
| Name | Description |
29
+
|------|-------------|
30
+
| address | First IP of the reserved range. |
31
+
| google\_compute\_global\_address\_name | URL of the reserved range. |
32
+
| peering\_completed | Use for enforce ordering between resource creation |
* Licensed under the Apache License, Version 2.0 (the "License");
5
+
* you may not use this file except in compliance with the License.
6
+
* You may obtain a copy of the License at
7
+
*
8
+
* http://www.apache.org/licenses/LICENSE-2.0
9
+
*
10
+
* Unless required by applicable law or agreed to in writing, software
11
+
* distributed under the License is distributed on an "AS IS" BASIS,
12
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
* See the License for the specific language governing permissions and
14
+
* limitations under the License.
15
+
*/
16
+
17
+
variable"project_id" {
18
+
description="The project ID of the VPC network to peer. This can be a shared VPC host projec."
19
+
}
20
+
21
+
variable"vpc_network" {
22
+
description="Name of the VPC network to peer."
23
+
}
24
+
25
+
variable"address" {
26
+
description="First IP address of the IP range to allocate to CLoud SQL instances and other Private Service Access services. If not set, GCP will pick a valid one for you."
27
+
default=""
28
+
}
29
+
30
+
variable"prefix_length" {
31
+
description="Prefix length of the IP range reserved for Cloud SQL instances and other Private Service Access services. Defaults to /16."
32
+
default="16"
33
+
}
34
+
35
+
variable"ip_version" {
36
+
description="IP Version for the allocation. Can be IPV4 or IPV6."
37
+
default=""
38
+
}
39
+
40
+
variable"labels" {
41
+
description="The key/value labels for the IP range allocated to the peered network."
0 commit comments