Files
hunfabric/tests/modules/cloudsql_instance/examples/simple.yaml
jta-ofr 2cb67b3532 Add data_api_access attribute to cloudsql-instance module (#3866)
* add data-api-access to clousql instance module

* fix readme

* updates to follow guidelines

* update test module

* add validation for data_api_access variable

* regenerate readme.md

* allow data_api_access to be nullable

* set default to null

* update readme

---------

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2026-04-16 09:24:02 +00:00

178 lines
5.8 KiB
YAML

# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
module.db.google_sql_database_instance.primary:
clone: []
database_version: POSTGRES_13
deletion_protection: false
name: db
project: test-db-prj
region: europe-west8
restore_backup_context: []
root_password: null
settings:
- activation_policy: ALWAYS
active_directory_config: []
advanced_machine_features: []
availability_type: ZONAL
collation: null
data_api_access: "ALLOW_DATA_API"
database_flags: []
deletion_protection_enabled: false
deny_maintenance_period: []
disk_autoresize: true
disk_autoresize_limit: 0
disk_type: PD_SSD
edition: ENTERPRISE
enable_google_ml_integration: null
ip_configuration:
- allocated_ip_range: null
authorized_networks: []
enable_private_path_for_google_cloud_services: false
ipv4_enabled: false
psc_config: []
maintenance_window: []
password_validation_policy: []
pricing_plan: PER_USE
sql_server_audit_config: []
tier: db-g1-small
time_zone: null
timeouts: null
module.project.google_project.project[0]:
auto_create_network: false
billing_account: 123456-123456-123456
folder_id: '1122334455'
deletion_policy: 'DELETE'
labels: null
name: test-db-prj
org_id: null
project_id: test-db-prj
timeouts: null
module.project.google_project_iam_member.service_agents["cloud-sql"]:
condition: []
project: test-db-prj
role: roles/cloudsql.serviceAgent
module.project.google_project_iam_member.service_agents["service-networking"]:
condition: []
project: test-db-prj
role: roles/servicenetworking.serviceAgent
module.project.google_project_service.project_services["servicenetworking.googleapis.com"]:
disable_dependent_services: false
disable_on_destroy: false
project: test-db-prj
service: servicenetworking.googleapis.com
timeouts: null
module.project.google_project_service.project_services["sqladmin.googleapis.com"]:
disable_dependent_services: false
disable_on_destroy: false
project: test-db-prj
service: sqladmin.googleapis.com
timeouts: null
module.project.google_project_service_identity.default["servicenetworking.googleapis.com"]:
project: test-db-prj
service: servicenetworking.googleapis.com
timeouts: null
module.project.google_project_service_identity.default["sqladmin.googleapis.com"]:
project: test-db-prj
service: sqladmin.googleapis.com
timeouts: null
module.vpc.google_compute_global_address.psa_ranges["servicenetworking-googleapis-com-cloud-sql"]:
address: 10.60.0.0
address_type: INTERNAL
description: null
ip_version: null
name: servicenetworking-googleapis-com-cloud-sql
prefix_length: 16
project: test-db-prj
purpose: VPC_PEERING
timeouts: null
module.vpc.google_compute_network.network[0]:
auto_create_subnetworks: false
delete_default_routes_on_create: false
description: Terraform-managed.
enable_ula_internal_ipv6: null
name: my-network
network_firewall_policy_enforcement_order: AFTER_CLASSIC_FIREWALL
project: test-db-prj
routing_mode: GLOBAL
timeouts: null
module.vpc.google_compute_network_peering_routes_config.psa_routes["servicenetworking.googleapis.com"]:
export_custom_routes: false
import_custom_routes: false
network: my-network
project: test-db-prj
timeouts: null
module.vpc.google_compute_route.gateway["private-googleapis"]:
description: Terraform-managed.
dest_range: 199.36.153.8/30
name: my-network-private-googleapis
network: my-network
next_hop_gateway: default-internet-gateway
next_hop_ilb: null
next_hop_instance: null
next_hop_vpn_tunnel: null
priority: 1000
project: test-db-prj
tags: null
timeouts: null
module.vpc.google_compute_route.gateway["restricted-googleapis"]:
description: Terraform-managed.
dest_range: 199.36.153.4/30
name: my-network-restricted-googleapis
network: my-network
next_hop_gateway: default-internet-gateway
next_hop_ilb: null
next_hop_instance: null
next_hop_vpn_tunnel: null
priority: 1000
project: test-db-prj
tags: null
timeouts: null
module.vpc.google_compute_subnetwork.psc["europe-west8/psc"]:
description: Terraform-managed subnet for Private Service Connect (PSC NAT).
ip_cidr_range: 10.0.3.0/24
ipv6_access_type: null
log_config: []
name: psc
network: my-network
project: test-db-prj
purpose: PRIVATE_SERVICE_CONNECT
region: europe-west8
role: null
timeouts: null
module.vpc.google_service_networking_connection.psa_connection["servicenetworking.googleapis.com"]:
deletion_policy: ABANDON
reserved_peering_ranges:
- servicenetworking-googleapis-com-cloud-sql
service: servicenetworking.googleapis.com
timeouts: null
counts:
google_compute_global_address: 1
google_compute_network: 1
google_compute_network_peering_routes_config: 1
google_compute_route: 3
google_compute_subnetwork: 1
google_project: 1
google_project_iam_member: 2
google_project_service: 2
google_project_service_identity: 2
google_service_networking_connection: 1
google_sql_database_instance: 1
modules: 3
resources: 16
outputs: {}