Pawan Roshan Gupta
e753344bd2
Support per-replica tier override in modules/cloudsql-instance ( #4014 )
...
* Support per-replica tier override in modules/cloudsql-instance
Replicas previously ignored any caller-provided tier and silently
inherited the primary's tier. Add an optional `tier` field to the
`replicas` map and use `coalesce(each.value.tier, var.tier)` in the
replica resource so per-replica overrides take effect while
preserving the inherit-from-primary default.
* Update README
---------
Co-authored-by: Julio Castillo <jccb@google.com >
2026-06-09 08:02:34 +00:00
Brandon Tucker
3ee1cc7ab3
Enable remaining PSC config options in modules/cloudsql-instance ( #3982 )
...
* Enable remaining PSC config options
* Windows slashes
* Updates from review; slim down locals; obsolete psc_allowed_consumer_projects
* Windows slashes
* tfvars; examples
* Copy-paste bug
* Proper list check
* Updates from Automated PR Review
* Slahes
* null psc fix; regenerate custom test inventory
* fmt
* Correct fixtures; remove deletion_policy from instance resources
* Fix test
* Remove deletio policy
---------
Co-authored-by: Julio Castillo <jccb@google.com >
2026-05-30 17:38:55 +00:00
Simone Ruffilli
1594a01c6f
Cosmetic and linter fixes ( #3981 )
2026-05-22 08:28:01 +00:00
Ludovico Magnocavallo
98554a9d20
feat(cloudsql): add support for enhanced query insights ( #3948 )
...
Adds support for enhanced query insights on cloud sql instances by adding enhanced_query_insights_enabled to the insights_config block. This allows enabling deeper visibility into query performance.
Closes #3890
TAG=agy
CONV=41331d43-c782-48a4-b0e7-bc8ad14866e9
2026-05-08 09:08:16 +02:00
Simone Ruffilli
c8886b4d88
Support context interpolation for psc_allowed_consumer_projects in module cloudsql-instance ( #3894 )
2026-04-21 15:22:48 +00:00
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
Ludovico Magnocavallo
a6c284a273
Add context support to artifact-registry, net-lb-app-int, cloudsql modules ( #3784 )
...
* artifact-registry
* net-lb-app-int
* copyright
* cloudsql
* fix linting
2026-03-11 12:35:09 +01:00
Wiktor Niesiobędzki
2687dd2b97
make a test self-link look like a self-link and fix tests
2025-12-19 11:05:25 +01:00
Ludovico Magnocavallo
c8e4179f2b
Add custom routes for directpath to net-vpc module ( #2966 )
...
* add custom routes for directpath to net-vpc module
* blueprint tests
* blueprint tests
* blueprint tests
* fast tests
* tfdoc
* module examples
2025-03-19 10:22:47 +00:00
Wiktor Niesiobędzki
fc256165a4
Pass edition and other parameters to replicas
2025-03-17 11:46:01 +01:00
Simon Roberts
642ebfe9e9
Increase the default complexity of Cloud SQL DB passwords ( #2886 )
...
* Increase the default complexity of DB passwords in order to meet password_validation_policy.default_complexity
* Use password_validation_policy.min_length if provided
* Explicitly generate a root_password if not provided
* Use object (password, random_password) for root_password config
* Make root_password non-nullable, and add validation against specifying both a password and `random_password`.
Fix test for stronger password generation.
* Add example for root_password and password_validation_policy
* Rerun tfdoc.py
---------
Co-authored-by: Julio Castillo <jccb@google.com >
2025-02-18 10:46:29 +00:00
fulyagonultas
be0f2e58b2
enable_private_path_for_google_cloud_services added to CloudSQL ( #2726 )
...
* enable_private_path_for_google_cloud_services added to CloudSQL
* name of the variable changed
* new feature added to the replica as well
* Update simple.yaml enable_private_path_for_google_cloud_services: false
2024-11-22 13:08:33 +00:00
Julio Castillo
c60d152f4a
Add hierarchical namespace support to GCS module ( #2712 )
...
* Add hierarchical namespace support to GCS module
* remove empty iap block from inventories
* Fix tests
* Add new hns inventory
---------
Co-authored-by: Ludo <ludomagno@google.com >
2024-11-18 11:41:49 +00:00
Wiktor Niesiobędzki
b85711e81b
Additional examples
...
- Cloud Run - mounting Cloud SQL
- Cloud SQL - creating users for IAM service account
2024-11-10 07:02:29 +01:00
Simone Ruffilli
7f8a02a405
Add support for google provider 6.x ( #2536 )
...
* Add support for google provider 6.x
Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com >
Co-authored-by: Wiktor Niesiobędzki <wiktorn@google.com >
Co-authored-by: Julio Castillo <jccb@google.com >
2024-09-05 10:35:58 +00:00
Julio Castillo
0420dec32f
Add deletion_policy to project module ( #2502 )
...
* Replace skip_delete with deletion_policy
* Fix blueprints
* Update apigee blueprint readme
* Remove skip_delete from test inventories
2024-08-16 18:33:39 +02:00
Wiktor Niesiobędzki
2758eee4ff
Fix inventories for Cloud SQL
2024-08-06 11:49:29 +02:00
Julio Castillo
c0bf32e797
Refactor service agent management ( #2423 )
...
* Service agents script
* Service agents update
* WIP
* Update script and terraform
* Fix tests
* Fix linter
* Update docs
* Bring back pf example inventory
* Fix tests
* Fix more tests
* Fix tests
* Use dataclasses for build_service_agents.py
* Remove unneeded field() from build_service_agents
* Re-enable CMEK depends_on in project outputs
* Update tools/requirements.txt
* Enable storage in GCS example projects
* Fix tests
* Add CMEK Service Agents dependencies for services
* Fix typos and data platform cmek
* More typos
2024-07-23 22:05:38 +02:00
Wiktor Niesiobędzki
6a3c7fe444
CloudSQL PSC Endpoints support ( #2242 )
...
* Add PSC endpoints consumers to net-address
* Cloud SQL E2E tests
2024-05-12 12:00:39 +02:00
Ludovico Magnocavallo
9414779cc2
Allow multiple PSA service providers in net-vpc module ( #2218 )
...
* allowing multiple PSA service providers in net-vpc module
* tfdoc
* tfdoc
* Add tfvars/yaml tests
* fix module and tests
* re-enable inventory
* merge fix
* Add multiple PSA test case
* fix cloudsql example
---------
Co-authored-by: Wiktor Niesiobędzki <wiktorn@google.com >
2024-04-16 15:02:36 +00:00
Wiktor Niesiobędzki
aec7fc87c2
Trim down inventories for Cloud SQL
2023-11-04 07:31:33 +00:00
Julio Castillo
dfc5023e0b
Make deletion protection consistent across all modules ( #1735 )
...
* Expose deletion_protection in GKE modules
* Make deletion protection consistent across all modules
* Add deletion_protection option to blueprints
* Fix blueprints tests
* Fix types
* Update READMEs
* Fix dp readme
* Fix cmek blueprint default deletion_protection
* Fix blueprints tests
2023-10-05 17:31:07 +02:00
Jason Steenblik
79b0dc9751
Add deletion_protection_enabled attribute to cloudsql-instance to enable the GCP native deletion protection flag ( #1696 )
2023-09-20 15:09:38 +02:00
Julio Castillo
24e591f85a
Fix tests using provider 4.80
2023-09-05 11:28:12 +02:00
Julio Castillo
42fdd08411
Fix cloud sql tests
2023-08-07 16:23:10 +02:00
Mikhail Filipchuk
ec74f351f5
feat(cloudsql-instance): Add query insights config ( #1520 )
2023-07-21 20:14:34 +02:00
Taneli Leppä
81285065ca
Added module for Secure Web Proxy.
2023-06-13 08:49:58 +02:00
Julio Castillo
4770cb06fd
Migrate cloudsql-instance examples
2023-04-17 09:17:54 +02:00
Natalia Strelkova
d6c6ae943e
regional MySQL DBs - automatic backup conf
2022-09-21 08:14:24 +00:00
Alef Reis
97104c0098
Add support to a public access to cloudsql-instance ( #754 )
...
* feat: add support to a public access to cloudsql-instance
* doc: update cloudsql-instance doc changing the ipv4_enabled parameter description
* test: fix assertion test to ipv4_enabled
2022-08-09 13:42:42 +02:00
Julio Castillo
1f254880b9
Add sqladmin to project jit_si and fix some documentation
2022-04-13 00:22:54 +02:00
Julio Castillo
f0773d4883
Simplify tests by figuring out fixture dir automatically
...
We always use the same directory for terraform fixtures, so it's quite
easy to figure out its path from a pytest fixture by inspecting the
stack. This commit implements this functionality and decreases the
amount of boilerplate needed to write a test.
(Ported from fast)
2022-01-11 11:54:13 +01:00
Simone Ruffilli
ee25965c89
Copyright bump ( #410 )
2022-01-01 15:52:31 +01:00
caiotavaresdito
c65afde6b0
Included new variables fixture test plan
2021-10-18 11:13:53 -04:00
Julio Castillo
cd4917f2f2
README and test fixes
2021-10-07 21:50:16 +02:00
Julio Castillo
1378efde6e
New module for Cloud SQL instances
2021-10-07 18:20:07 +02:00