Merge remote-tracking branch 'origin/master' into fast-dev

This commit is contained in:
Ludovico Magnocavallo
2026-02-07 11:17:09 +00:00
50 changed files with 806 additions and 369 deletions

File diff suppressed because one or more lines are too long

View File

@@ -14,6 +14,13 @@
* limitations under the License.
*/
data "google_cloud_asset_search_all_resources" "default" {
for_each = var.asset_search
scope = "projects/${local.project.project_id}"
asset_types = each.value.asset_types
query = each.value.query
}
resource "google_cloud_asset_project_feed" "default" {
for_each = var.asset_feeds
project = local.project.project_id

View File

@@ -22,6 +22,13 @@ output "alert_ids" {
}
}
output "asset_search_results" {
description = "Cloud Asset Inventory search results."
value = {
for k, v in data.google_cloud_asset_search_all_resources.default : k => v.results
}
}
output "bigquery_reservations" {
description = "BigQuery reservations and assignments."
value = {

View File

@@ -48,6 +48,16 @@ variable "asset_feeds" {
}
}
variable "asset_search" {
description = "Cloud Asset Inventory search configurations."
type = map(object({
asset_types = list(string)
query = optional(string)
}))
default = {}
nullable = false
}
variable "auto_create_network" {
description = "Whether to create the default network for the project."
type = bool