├── .github ├── CODEOWNERS ├── pull_request_template.md ├── renovate.json ├── snippet-bot.yml ├── trusted-contribution.yml └── workflows │ ├── lint.yaml │ └── periodic-reporter.yaml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── application_integration ├── create_auth_config │ └── main.tf └── provision_region │ └── main.tf ├── backupdr ├── backup_plan │ └── main.tf ├── backup_plan_association │ └── main.tf └── backup_vault │ └── main.tf ├── bigquery ├── biglake │ ├── biglake_metastore_create_table │ │ └── main.tf │ ├── bigquery_create_object_table │ │ └── main.tf │ ├── bigquery_create_partitioned_biglake_table │ │ └── main.tf │ └── bigquery_create_unpartitioned_biglake_table │ │ └── main.tf ├── bigquery_create_connection_cloud_resource │ └── main.tf ├── bigquery_create_dataset │ └── main.tf ├── bigquery_create_dataset_attach_tag │ └── main.tf ├── bigquery_create_dataset_cmek │ ├── main.tf │ └── test.yaml ├── bigquery_create_dataset_iam │ ├── main.tf │ └── test.yaml ├── bigquery_create_materialized_view │ ├── main.tf │ └── test.yaml ├── bigquery_create_reservation │ └── main.tf ├── bigquery_create_reservation_none │ └── main.tf ├── bigquery_create_spanner_external_dataset │ ├── main.tf │ └── test.yaml ├── bigquery_create_table │ └── main.tf ├── bigquery_create_table_attach_tag │ ├── main.tf │ └── test.yaml ├── bigquery_create_table_clustered │ └── main.tf ├── bigquery_create_table_cmek │ ├── main.tf │ └── test.yaml ├── bigquery_create_table_iam │ ├── main.tf │ └── test.yaml ├── bigquery_create_table_ingestion_partitioned │ └── main.tf ├── bigquery_create_table_partitioned │ └── main.tf ├── bigquery_create_table_range_partitioned │ └── main.tf ├── bigquery_create_view │ └── main.tf ├── bigquery_tags_tag_key │ └── main.tf └── bigquery_tags_tag_value │ └── main.tf ├── build ├── int.cloudbuild.yaml └── lint.cloudbuild.yaml ├── certificate_manager ├── dns_managed_zone_with_wildcard_certificate │ └── main.tf ├── google_managed_cert │ └── main.tf └── google_managed_lb_auth │ ├── main.tf │ └── test.yaml ├── cloud_scheduler └── basic │ └── main.tf ├── cloud_sql ├── instance_cmek │ ├── main.tf │ └── test.yaml ├── instance_ha │ ├── main.tf │ └── test.yaml ├── instance_iam_condition │ ├── main.tf │ └── test.yaml ├── instance_labels │ ├── main.tf │ └── test.yaml ├── instance_pitr │ ├── main.tf │ └── test.yaml ├── instance_ssl_cert │ ├── main.tf │ └── test.yaml ├── mysql_database_basic │ └── main.tf ├── mysql_database_instance │ └── main.tf ├── mysql_enterprise_plus_instance_clone │ └── main.tf ├── mysql_enterprise_plus_instance_labels │ └── main.tf ├── mysql_enterprise_plus_instance_pvp │ └── main.tf ├── mysql_instance_authorized_network │ ├── main.tf │ └── test.yaml ├── mysql_instance_backup │ ├── main.tf │ └── test.yaml ├── mysql_instance_backup_location │ ├── main.tf │ └── test.yaml ├── mysql_instance_backup_retention │ ├── main.tf │ └── test.yaml ├── mysql_instance_clone │ ├── main.tf │ └── test.yaml ├── mysql_instance_cmek │ ├── main.tf │ └── test.yaml ├── mysql_instance_custom_subject_alternative_names │ └── main.tf ├── mysql_instance_customer_managed_cas_ca │ └── main.tf ├── mysql_instance_flags │ ├── main.tf │ └── test.yaml ├── mysql_instance_google_managed_cas_ca │ └── main.tf ├── mysql_instance_ha │ └── main.tf ├── mysql_instance_iam_db_auth │ ├── main.tf │ └── test.yaml ├── mysql_instance_iam_group_auth │ ├── main.tf │ └── test.yaml ├── mysql_instance_labels │ └── main.tf ├── mysql_instance_pitr │ └── main.tf ├── mysql_instance_private_ip │ ├── main.tf │ └── test.yaml ├── mysql_instance_psa_psc │ ├── main.tf │ └── test.yaml ├── mysql_instance_psc │ ├── main.tf │ └── test.yaml ├── mysql_instance_psc_sa │ ├── main.tf │ └── test.yaml ├── mysql_instance_public_ip │ ├── main.tf │ └── test.yaml ├── mysql_instance_pvp │ ├── main.tf │ └── test.yaml ├── mysql_instance_replica │ ├── main.tf │ └── test.yaml ├── mysql_instance_ssl_cert │ └── main.tf ├── mysql_instance_ssm │ ├── main.tf │ └── test.yaml ├── mysql_instance_switchover │ ├── dr_replica_create │ │ ├── main.tf │ │ └── test.yaml │ ├── dr_replica_designate │ │ ├── main.tf │ │ └── test.yaml │ ├── switchover_begin │ │ ├── main.tf │ │ └── test.yaml │ └── switchover_finish │ │ ├── main.tf │ │ └── test.yaml ├── postgres_database_basic │ └── main.tf ├── postgres_database_instance │ └── main.tf ├── postgres_enterprise_edition_instance │ └── main.tf ├── postgres_enterprise_plus_edition_instance │ └── main.tf ├── postgres_enterprise_plus_instance_clone │ └── main.tf ├── postgres_enterprise_plus_instance_labels │ └── main.tf ├── postgres_enterprise_plus_instance_pvp │ └── main.tf ├── postgres_instance_authorized_network │ ├── main.tf │ └── test.yaml ├── postgres_instance_backup │ ├── main.tf │ └── test.yaml ├── postgres_instance_backup_location │ ├── main.tf │ └── test.yaml ├── postgres_instance_backup_retention │ ├── main.tf │ └── test.yaml ├── postgres_instance_clone │ ├── main.tf │ └── test.yaml ├── postgres_instance_cmek │ ├── main.tf │ └── test.yaml ├── postgres_instance_custom_subject_alternative_names │ └── main.tf ├── postgres_instance_customer_managed_cas_ca │ └── main.tf ├── postgres_instance_flags │ ├── main.tf │ └── test.yaml ├── postgres_instance_google_managed_cas_ca │ └── main.tf ├── postgres_instance_ha │ └── main.tf ├── postgres_instance_iam_db_auth │ ├── main.tf │ └── test.yaml ├── postgres_instance_iam_group_auth │ ├── main.tf │ └── test.yaml ├── postgres_instance_labels │ └── main.tf ├── postgres_instance_pitr │ └── main.tf ├── postgres_instance_private_ip │ ├── main.tf │ └── test.yaml ├── postgres_instance_psa_psc │ ├── main.tf │ └── test.yaml ├── postgres_instance_psc │ ├── main.tf │ └── test.yaml ├── postgres_instance_psc_sa │ ├── main.tf │ └── test.yaml ├── postgres_instance_public_ip │ ├── main.tf │ └── test.yaml ├── postgres_instance_pvp │ ├── main.tf │ └── test.yaml ├── postgres_instance_replica │ ├── main.tf │ └── test.yaml ├── postgres_instance_ssl_cert │ └── main.tf ├── postgres_instance_ssm │ ├── main.tf │ └── test.yaml ├── postgres_instance_switchover │ ├── dr_replica_create │ │ ├── main.tf │ │ └── test.yaml │ ├── dr_replica_designate │ │ ├── main.tf │ │ └── test.yaml │ ├── switchover_begin │ │ ├── main.tf │ │ └── test.yaml │ └── switchover_finish │ │ ├── main.tf │ │ └── test.yaml ├── sqlserver_database_basic │ └── main.tf ├── sqlserver_database_instance │ └── main.tf ├── sqlserver_instance_active_directory │ ├── main.tf │ └── test.yaml ├── sqlserver_instance_authorized_network │ └── main.tf ├── sqlserver_instance_backup │ └── main.tf ├── sqlserver_instance_backup_location │ └── main.tf ├── sqlserver_instance_backup_retention │ └── main.tf ├── sqlserver_instance_clone │ └── main.tf ├── sqlserver_instance_cmek │ ├── main.tf │ └── test.yaml ├── sqlserver_instance_custom_subject_alternative_names │ └── main.tf ├── sqlserver_instance_customer_managed_cas_ca │ └── main.tf ├── sqlserver_instance_flags │ └── main.tf ├── sqlserver_instance_google_managed_cas_ca │ └── main.tf ├── sqlserver_instance_ha │ └── main.tf ├── sqlserver_instance_labels │ └── main.tf ├── sqlserver_instance_pitr │ └── main.tf ├── sqlserver_instance_private_ip │ ├── main.tf │ └── test.yaml ├── sqlserver_instance_psa_psc │ ├── main.tf │ └── test.yaml ├── sqlserver_instance_psc │ ├── main.tf │ └── test.yaml ├── sqlserver_instance_psc_sa │ ├── main.tf │ └── test.yaml ├── sqlserver_instance_public_ip │ └── main.tf ├── sqlserver_instance_replica │ └── main.tf ├── sqlserver_instance_ssl_cert │ └── main.tf ├── sqlserver_instance_ssm │ ├── main.tf │ └── test.yaml └── sqlserver_vm_instance │ └── main.tf ├── composer ├── multi_project_monitoring │ ├── main.tf │ └── test.yaml └── triggering_dags_with_functions_and_pubsub │ ├── main.tf │ ├── pubsub_trigger_response_dag.py │ └── test.yaml ├── compute ├── add_persistent_disk │ └── main.tf ├── autoscaler_instance_group │ └── main.tf ├── basic_vm │ └── main.tf ├── disk │ └── main.tf ├── disk_async_replication │ └── main.tf ├── disk_consistency_group_attachment │ └── main.tf ├── external_address │ └── main.tf ├── firewall_rule_for_health_check │ └── main.tf ├── health_check │ └── main.tf ├── instance_custom_hostname │ └── main.tf ├── instance_template_preemptible │ └── main.tf ├── instance_template_with_gpu │ └── main.tf ├── instance_virtual_display_enabled │ └── main.tf ├── local_ssd │ └── main.tf ├── mig_stateful_disk_basic │ └── main.tf ├── os_config_policy │ └── main.tf ├── os_login │ └── main.tf ├── os_login_ssh_key │ ├── id_rsa.pub │ └── main.tf ├── packet_mirroring_full │ └── main.tf ├── pic_disks │ └── main.tf ├── pic_metadata │ └── main.tf ├── quickstart │ └── create_vm │ │ └── main.tf ├── region_autoscaler_basic │ └── main.tf ├── reservation │ ├── create_local │ │ └── main.tf │ └── main.tf ├── resize_request_basic │ └── main.tf ├── rmig_default_action_on_failure │ └── main.tf ├── rmig_instance_flexibility_policy │ └── main.tf ├── rmig_instance_flexibility_policy_without_preferences │ └── main.tf ├── rmig_redistribution │ └── main.tf ├── rmig_shape │ └── main.tf ├── rmig_stateful_policy_ips │ └── main.tf ├── rmig_zones_spreading │ └── main.tf ├── rpic_ips │ └── main.tf ├── run_shutdown_scripts │ ├── main.tf │ └── shutdown-script.sh ├── service_account_for_instances │ └── main.tf ├── spot_instance_basic │ └── main.tf ├── zonal_instance_group_manager │ └── main.tf ├── zonal_mig_all_instances_config │ └── main.tf ├── zonal_mig_default_action_on_failure │ └── main.tf ├── zonal_mig_health_check │ └── main.tf ├── zonal_mig_paginated_instances_result │ └── main.tf ├── zonal_mig_set_autoscaling_basic │ └── main.tf ├── zonal_mig_standby_policy │ └── main.tf ├── zonal_mig_standby_policy_with_resize │ └── main.tf └── zonal_mig_stateful_policy_disk │ └── main.tf ├── dns ├── managed_zone_basic │ └── main.tf ├── managed_zone_private │ └── main.tf ├── managed_zone_private_forwarding │ ├── main.tf │ └── test.yaml ├── managed_zone_private_peering │ └── main.tf ├── managed_zone_quickstart │ └── main.tf ├── managed_zone_reverse_lookup │ └── main.tf ├── managed_zone_service_directory │ └── main.tf ├── managed_zone_with_dnssec │ ├── main.tf │ └── test.yaml ├── policy_basic │ └── main.tf ├── policy_inbound │ └── main.tf ├── policy_outbound │ └── main.tf ├── record_set_basic │ └── main.tf ├── response_policy_basic │ └── main.tf └── response_policy_rule_basic │ └── main.tf ├── eventarc ├── basic │ └── main.tf ├── basic_pubsub │ └── main.tf ├── use_cmek │ └── main.tf └── workflows │ └── main.tf ├── functions ├── basic │ ├── functions │ │ └── hello-world │ │ │ ├── index.js │ │ │ └── package.json │ └── main.tf ├── basic_audit_logs │ ├── function-source │ │ ├── index.js │ │ └── package.json │ └── main.tf ├── basic_gcs │ ├── function-source │ │ ├── index.js │ │ └── package.json │ └── main.tf └── pubsub │ ├── function-source │ ├── index.js │ └── package.json │ └── main.tf ├── gke ├── autopilot │ ├── basic │ │ └── main.tf │ ├── config_sync │ │ ├── git │ │ │ ├── main.tf │ │ │ └── test.yaml │ │ └── oci │ │ │ ├── main.tf │ │ │ └── test.yaml │ ├── iap │ │ ├── main.tf │ │ └── test.yaml │ ├── labels │ │ └── main.tf │ ├── mesh │ │ └── main.tf │ ├── policycontroller │ │ └── main.tf │ ├── release_channel │ │ └── main.tf │ ├── reservation │ │ ├── main.tf │ │ └── test.yaml │ └── tag │ │ └── main.tf ├── enterprise │ ├── config_sync │ │ ├── git │ │ │ ├── main.tf │ │ │ └── test.yaml │ │ └── oci │ │ │ ├── main.tf │ │ │ └── test.yaml │ ├── enable │ │ └── main.tf │ ├── mesh │ │ └── main.tf │ └── policycontroller │ │ └── main.tf ├── quickstart │ ├── autopilot │ │ ├── app.tf │ │ └── cluster.tf │ └── multitenant │ │ ├── backend.yaml │ │ ├── frontend.yaml │ │ └── main.tf └── standard │ ├── regional │ ├── binary-authorization │ │ └── main.tf │ ├── gemma-tgi │ │ └── main.tf │ ├── hpa-logs │ │ └── main.tf │ ├── labels │ │ └── main.tf │ ├── loadbalancer │ │ └── main.tf │ ├── multi-zone │ │ └── main.tf │ ├── node_pool │ │ └── main.tf │ ├── node_system_config │ │ └── main.tf │ ├── ray │ │ └── main.tf │ ├── single-zone │ │ └── main.tf │ └── windows │ │ └── main.tf │ └── zonal │ ├── arm │ └── main.tf │ ├── dws │ ├── main.tf │ └── test.yaml │ ├── gpu │ └── main.tf │ ├── multi-zone │ └── main.tf │ ├── no-channel-to-release-channel │ ├── no_minor_or_node_upgrade │ │ └── main.tf │ ├── no_upgrade │ │ └── main.tf │ ├── rc_none │ │ └── main.tf │ └── rc_regular │ │ └── main.tf │ ├── node_image │ └── main.tf │ ├── reservation │ └── main.tf │ ├── secondary-boot-disk │ └── main.tf │ └── single-zone │ └── main.tf ├── gkeonprem └── README.md ├── iam ├── create_deny_policy │ ├── main.tf │ └── test.yaml └── create_service_agent │ ├── main.tf │ └── test.yaml ├── integrationconnectors ├── advanced │ ├── main.tf │ └── test.yaml ├── endpointattachment │ └── main.tf └── managedzone │ ├── main.tf │ └── test.yaml ├── lb ├── cross_reg_int_app_lb_mig_backend │ └── main.tf ├── external_cdn_lb_with_backend_bucket │ └── main.tf ├── external_http_lb_bucket_backend │ ├── images │ │ ├── three-cats.jpg │ │ └── two-dogs.jpg │ └── main.tf ├── external_http_lb_mig_backend │ ├── main.tf │ └── test.yaml ├── external_http_lb_mig_backend_custom_header │ └── main.tf ├── external_ssl_proxy_lb_mig_backend │ ├── main.tf │ └── test.yaml ├── external_ssl_proxy_lb_mig_backend_custom_header │ └── main.tf ├── external_tcp_proxy_lb_mig_backend │ └── main.tf ├── external_tcp_proxy_lb_mig_backend_custom_header │ └── main.tf ├── health_check_region │ └── main.tf ├── health_check_tcp │ └── main.tf ├── int_https_lb_https_redirect │ ├── main.tf │ └── test.yaml ├── internal_http_lb_with_mig_backend │ └── main.tf ├── internal_tcp_udp_lb_with_mig_backend │ └── main.tf ├── regional_external_http_load_balancer │ └── main.tf ├── shared_vpc_http_ilb_with_mig_backend │ ├── main.tf │ └── test.yaml ├── shared_vpc_http_ilb_with_mig_backend_basic_example │ ├── main.tf │ └── test.yaml ├── shared_vpc_http_ilb_with_mig_backend_cross_reference_example │ ├── main.tf │ └── test.yaml ├── shared_vpc_https_ilb_with_mig_backend_basic_example │ ├── main.tf │ ├── sample-private.key │ ├── sample-server.cert │ └── test.yaml ├── shared_vpc_https_ilb_with_mig_backend_cross_reference_example │ ├── main.tf │ ├── sample-private.key │ ├── sample-server.cert │ └── test.yaml ├── target_grpc_proxy_basic │ └── main.tf ├── target_http_proxy_basic │ └── main.tf ├── target_http_proxy_https_redirect │ └── main.tf ├── target_https_proxy_basic │ └── main.tf ├── target_ssl_proxy_basic │ └── main.tf ├── target_tcp_proxy_basic │ └── main.tf └── url_map_bucket_and_service │ └── main.tf ├── looker ├── looker_instance_basic │ ├── main.tf │ └── test.yaml ├── looker_instance_enterprise_full │ ├── main.tf │ └── test.yaml └── looker_instance_full │ ├── main.tf │ └── test.yaml ├── managedkafka ├── managedkafka_create_cluster │ └── main.tf └── managedkafka_create_topic │ └── main.tf ├── media_cdn ├── custom_headers │ ├── main.tf │ └── test.yaml ├── dynamic_compression │ ├── main.tf │ └── test.yaml ├── keyset │ ├── main.tf │ └── test.yaml ├── quickstart │ ├── main.tf │ └── test.yaml ├── security_policies │ └── main.tf └── ssl_certificates │ └── main.tf ├── network_connectivity ├── interconnect │ ├── ha_vpn_over_interconnect_10GB_attach │ │ ├── main.tf │ │ └── test.yaml │ └── ha_vpn_over_interconnect_5GB_attach │ │ ├── main.tf │ │ └── test.yaml ├── network_connectivity_center │ ├── network_management_connectivity_test_addresses │ │ └── main.tf │ └── network_management_connectivity_test_instances │ │ └── main.tf └── service_connectivity_automation │ └── service_connection_policies │ └── main.tf ├── network_management ├── ipv6_dual_stack │ └── main.tf └── vpcflowlogs │ ├── interconnect_attachment_basic │ └── main.tf │ ├── interconnect_attachment_full │ └── main.tf │ ├── vpn_tunnel_basic │ └── main.tf │ └── vpn_tunnel_full │ └── main.tf ├── network_security ├── intercept │ └── basic │ │ ├── consumer │ │ ├── main.tf │ │ └── test.yaml │ │ └── producer │ │ └── main.tf └── mirroring │ └── basic │ ├── consumer │ ├── main.tf │ └── test.yaml │ └── producer │ └── main.tf ├── privateca ├── capool_all_fields │ └── main.tf ├── capool_basic │ └── main.tf ├── certificate_authority_basic │ └── main.tf ├── certificate_authority_byo_key │ ├── main.tf │ └── test.yaml ├── certificate_authority_subordinate │ └── main.tf ├── certificate_config │ └── main.tf ├── certificate_csr │ └── main.tf ├── certificate_no_authority │ └── main.tf ├── certificate_with_template │ └── main.tf └── quickstart │ ├── main.tf │ └── test.yaml ├── run ├── access_control │ └── main.tf ├── add_tag │ ├── main.tf │ └── test.yaml ├── cloud_run_configuration_concurrency │ └── main.tf ├── cloud_run_configuration_containers │ └── main.tf ├── cloud_run_configuration_cpu │ └── main.tf ├── cloud_run_configuration_cpu_allocation │ └── main.tf ├── cloud_run_configuration_description │ └── main.tf ├── cloud_run_configuration_environment_variables │ └── main.tf ├── cloud_run_configuration_http2 │ └── main.tf ├── cloud_run_configuration_labels │ └── main.tf ├── cloud_run_configuration_max_instances │ └── main.tf ├── cloud_run_configuration_memory_limits │ └── main.tf ├── cloud_run_configuration_min_instances │ └── main.tf ├── cloud_run_configuration_request_timeout │ └── main.tf ├── connect_cloud_sql │ └── main.tf ├── custom_domain_mapping │ ├── main.tf │ └── test.yaml ├── deploy_tag │ ├── main.tf │ └── test.yaml ├── direct_vpc │ └── main.tf ├── healthchecks_liveness_probe_grpc │ └── main.tf ├── healthchecks_liveness_probe_http │ └── main.tf ├── healthchecks_startup_probe_grpc │ ├── main.tf │ └── test.yaml ├── healthchecks_startup_probe_http │ └── main.tf ├── healthchecks_startup_probe_tcp │ └── main.tf ├── identity │ └── main.tf ├── image_processing │ └── main.tf ├── ingress │ └── main.tf ├── interservice │ └── main.tf ├── jobs_create │ └── main.tf ├── jobs_execute_jobs_on_schedule │ └── main.tf ├── jobs_max_retries_create │ └── main.tf ├── jobs_task_parallelism_create │ └── main.tf ├── jobs_task_timeout_create │ └── main.tf ├── multiple_regions │ └── main.tf ├── noauth │ └── main.tf ├── pubsub │ ├── main.tf │ └── test.yaml ├── remove_tag │ ├── main.tf │ └── test.yaml ├── scheduled │ └── main.tf ├── secret_manager │ └── main.tf ├── secure_services │ └── main.tf ├── static_outbound │ └── main.tf ├── system_packages │ └── main.tf ├── tasks │ └── main.tf ├── traffic_gradual_rollout │ ├── main.tf │ └── test.yaml ├── traffic_latest_revision │ ├── main.tf │ └── test.yaml ├── traffic_rollback │ ├── main.tf │ └── test.yaml ├── traffic_split │ ├── main.tf │ └── test.yaml ├── traffic_split_tag │ ├── main.tf │ └── test.yaml └── vpc_access_connector │ └── main.tf ├── securitycenter └── securitycenter_v2_endpoint_us │ ├── main.tf │ └── test.yaml ├── storage ├── flask_google_cloud_quickstart │ ├── main.tf │ └── test.yaml ├── hmac_key │ └── main.tf ├── make_data_public │ └── main.tf ├── new_bucket │ └── main.tf ├── object_lifecycle_setting │ └── main.tf ├── pubsub_notifications │ └── main.tf ├── remote_terraform_backend_template │ ├── README.md │ ├── main.tf │ └── test.yaml └── static_website │ └── main.tf ├── test ├── integration │ ├── go.mod │ ├── go.sum │ └── sample_test.go └── setup │ ├── fixtures.tf │ ├── iam.tf │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── traffic_director ├── url_map_header_based_routing │ └── main.tf ├── url_map_parameter_based_routing │ └── main.tf ├── url_map_traffic_director_path │ └── main.tf ├── url_map_traffic_director_path_partial │ └── main.tf ├── url_map_traffic_director_route │ └── main.tf └── url_map_traffic_director_route_partial │ └── main.tf ├── vertex_ai ├── api │ └── main.tf ├── dataset │ ├── main.tf │ └── test.yaml ├── endpoint │ └── main.tf ├── featurestore │ └── main.tf ├── featurestore_entitytype │ └── main.tf ├── index │ └── main.tf ├── index_endpoint │ └── main.tf ├── index_endpoint_deploy │ └── main.tf ├── index_endpoint_deploy_psc │ └── main.tf ├── index_endpoint_deploy_vpc │ └── main.tf ├── index_endpoint_mutate │ └── main.tf ├── index_endpoint_mutate_psc │ └── main.tf ├── index_endpoint_mutate_vpc │ └── main.tf ├── index_endpoint_psc │ └── main.tf ├── index_endpoint_vpc │ └── main.tf ├── index_streaming │ └── main.tf ├── managed_notebooks_runtime │ └── main.tf ├── metadata_store │ └── main.tf ├── metadata_store_cmek │ └── main.tf ├── tensorboard │ └── main.tf ├── workbench │ └── main.tf ├── workbench_create_metadata │ └── main.tf ├── workbench_dataproc │ └── main.tf ├── workbench_idle_shutdown │ └── main.tf ├── workbench_remove_metadata │ └── main.tf └── workbench_update_metadata │ └── main.tf ├── vpc ├── firewall_with_target_tags │ └── main.tf ├── network_custom_mtu │ └── main.tf └── private_service_connect │ └── private_service_connect_google_apis │ └── main.tf ├── vpn ├── external_vpn_gateway │ └── main.tf └── ha_vpn_gateway_gcp_to_gcp │ └── main.tf └── workflows ├── basic └── main.tf └── cloud_run_job ├── main.tf └── test.yaml /.github/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": ["github>GoogleCloudPlatform/cloud-foundation-toolkit//infra/terraform/test-org/github/resources/renovate"] 4 | } 5 | -------------------------------------------------------------------------------- /.github/snippet-bot.yml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | 16 | -------------------------------------------------------------------------------- /.github/trusted-contribution.yml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | annotations: 16 | - type: comment 17 | text: "/gcbrun" 18 | trustedContributors: 19 | - release-please[bot] 20 | - renovate[bot] 21 | - renovate-bot 22 | - forking-renovate[bot] 23 | - dependabot[bot] 24 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX leaves these everywhere on SMB shares 2 | ._* 3 | 4 | # OSX trash 5 | .DS_Store 6 | 7 | # Python 8 | *.pyc 9 | 10 | # Emacs save files 11 | *~ 12 | \#*\# 13 | .\#* 14 | 15 | # Vim-related files 16 | [._]*.s[a-w][a-z] 17 | [._]s[a-w][a-z] 18 | *.un~ 19 | Session.vim 20 | .netrwhist 21 | 22 | # IntelliJ IDEA files: 23 | .idea/ 24 | 25 | # Visual Studio Code files: 26 | .vscode/ 27 | 28 | ### https://raw.github.com/github/gitignore/90f149de451a5433aebd94d02d11b0e28843a1af/Terraform.gitignore 29 | 30 | # Local .terraform directories 31 | **/.terraform/* 32 | 33 | # .tfstate files 34 | *.tfstate 35 | *.tfstate.* 36 | 37 | # tf lock file 38 | .terraform.lock.hcl 39 | 40 | # Crash log files 41 | crash.log 42 | 43 | test/fixtures/shared/terraform.tfvars 44 | 45 | test/integration/gcloud/config.sh 46 | test/integration/tmp 47 | 48 | credentials.json 49 | 50 | # File to populate env vars used by Docker test runs 51 | .envrc 52 | 53 | # Provider config generated for tests 54 | **/provider.tf 55 | 56 | # Any test logs 57 | **/**.log 58 | -------------------------------------------------------------------------------- /backupdr/backup_vault/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START backupdr_create_backupvault] 18 | 19 | resource "google_backup_dr_backup_vault" "default" { 20 | provider = google-beta 21 | location = "us-central1" 22 | backup_vault_id = "my-vault" 23 | description = "This vault is created usingTerraform." 24 | backup_minimum_enforced_retention_duration = "100000s" 25 | force_update = "true" 26 | ignore_inactive_datasources = "true" 27 | allow_missing = "true" 28 | } 29 | 30 | # [END backupdr_create_backupvault] 31 | -------------------------------------------------------------------------------- /bigquery/bigquery_create_dataset/main.tf: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Copyright 2023 Google LLC 4 | * 5 | * Licensed under the Apache License, Version 2.0 (the "License"); 6 | * you may not use this file except in compliance with the License. 7 | * You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | # [START bigquery_create_dataset] 19 | resource "google_bigquery_dataset" "default" { 20 | dataset_id = "mydataset" 21 | default_partition_expiration_ms = 2592000000 # 30 days 22 | default_table_expiration_ms = 31536000000 # 365 days 23 | description = "dataset description" 24 | location = "US" 25 | max_time_travel_hours = 96 # 4 days 26 | 27 | labels = { 28 | billing_group = "accounting", 29 | pii = "sensitive" 30 | } 31 | } 32 | # [END bigquery_create_dataset] 33 | -------------------------------------------------------------------------------- /bigquery/bigquery_create_dataset_cmek/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: bigquery_create_dataset_cmek 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /bigquery/bigquery_create_dataset_iam/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: bigquery_create_dataset_iam 19 | spec: 20 | skip: true 21 | 22 | 23 | -------------------------------------------------------------------------------- /bigquery/bigquery_create_materialized_view/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: bigquery_create_materialized_view 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /bigquery/bigquery_create_reservation_none/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START bigquery_create_reservation_assignment_none] 18 | data "google_project" "project" {} 19 | 20 | resource "google_bigquery_reservation_assignment" "default" { 21 | assignee = "projects/${data.google_project.project.project_id}" 22 | job_type = "QUERY" 23 | reservation = "projects/${data.google_project.project.project_id}/locations/us/reservations/none" 24 | } 25 | # [END bigquery_create_reservation_assignment_none] 26 | -------------------------------------------------------------------------------- /bigquery/bigquery_create_spanner_external_dataset/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START bigquery_create_spanner_external_dataset] 17 | resource "google_bigquery_dataset" "default" { 18 | dataset_id = "my_external_dataset" 19 | friendly_name = "My external dataset" 20 | description = "This is a test description." 21 | location = "US" 22 | external_dataset_reference { 23 | # The full identifier of your Spanner database. 24 | external_source = "google-cloudspanner:/projects/my_project/instances/my_instance/databases/my_database" 25 | # Must be empty for a Spanner external dataset. 26 | connection = "" 27 | } 28 | } 29 | # [END bigquery_create_spanner_external_dataset] 30 | -------------------------------------------------------------------------------- /bigquery/bigquery_create_spanner_external_dataset/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: bigquery_create_spanner_external_dataset 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /bigquery/bigquery_create_table_attach_tag/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: bigquery_bigquery_create_table_attach_tag 19 | spec: 20 | skip: true 21 | 22 | # https://github.com/hashicorp/terraform-provider-google/issues/19362 23 | -------------------------------------------------------------------------------- /bigquery/bigquery_create_table_cmek/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: bigquery_create_table_cmek 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /bigquery/bigquery_create_table_iam/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: bigquery_create_table_iam 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /bigquery/bigquery_tags_tag_key/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START bigquery_tags_tag_key] 18 | data "google_project" "default" {} 19 | 20 | resource "google_tags_tag_key" "env_tag_key" { 21 | parent = "projects/${data.google_project.default.project_id}" 22 | short_name = "env" 23 | } 24 | 25 | resource "google_tags_tag_key" "department_tag_key" { 26 | parent = "projects/${data.google_project.default.project_id}" 27 | short_name = "department" 28 | } 29 | # [END bigquery_tags_tag_key] 30 | -------------------------------------------------------------------------------- /build/lint.cloudbuild.yaml: -------------------------------------------------------------------------------- 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 | # https://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 | 15 | timeout: 3600s 16 | steps: 17 | - id: lint-placeholder 18 | name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS' 19 | args: ['/usr/local/bin/test_lint.sh'] 20 | tags: 21 | - 'ci' 22 | - 'lint' 23 | substitutions: 24 | _DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools' 25 | _DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.23' 26 | -------------------------------------------------------------------------------- /certificate_manager/google_managed_lb_auth/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: google_managed_lb_auth 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/instance_cmek/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: instance_cmek 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/instance_ha/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_instance_ha 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/instance_iam_condition/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_instance_iam_condition 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/instance_labels/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_instance_labels 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/instance_pitr/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_instance_pitr 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/instance_ssl_cert/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_instance_ssl_cert 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_authorized_network/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_authorized_network 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_backup/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_backup 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_backup_location/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_mysql_instance_backup_location] 18 | resource "google_sql_database_instance" "default" { 19 | name = "mysql-instance-with-backup-location" 20 | region = "asia-northeast1" 21 | database_version = "MYSQL_8_0" 22 | settings { 23 | tier = "db-f1-micro" 24 | backup_configuration { 25 | enabled = true 26 | location = "asia-northeast1" 27 | } 28 | } 29 | } 30 | # [END cloud_sql_mysql_instance_backup_location] 31 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_backup_location/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_backup_location 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_backup_retention/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_mysql_instance_backup_retention] 18 | resource "google_sql_database_instance" "default" { 19 | name = "mysql-instance-backup-retention" 20 | region = "asia-northeast1" 21 | database_version = "MYSQL_8_0" 22 | settings { 23 | tier = "db-f1-micro" 24 | backup_configuration { 25 | enabled = true 26 | backup_retention_settings { 27 | retained_backups = 365 28 | retention_unit = "COUNT" 29 | } 30 | } 31 | } 32 | } 33 | # [END cloud_sql_mysql_instance_backup_retention] 34 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_backup_retention/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_backup_retention 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_clone/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_clone 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_cmek/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: mysql_instance_cmek 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_flags/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_flags 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_iam_db_auth/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: mysql_instance_iam_db_auth 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_iam_group_auth/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: mysql_instance_iam_group_auth 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_pitr/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_mysql_instance_pitr] 18 | resource "google_sql_database_instance" "default" { 19 | name = "mysql-instance-pitr" 20 | region = "asia-northeast1" 21 | database_version = "MYSQL_8_0" 22 | settings { 23 | tier = "db-f1-micro" 24 | backup_configuration { 25 | enabled = true 26 | binary_log_enabled = true 27 | start_time = "20:55" 28 | transaction_log_retention_days = "3" 29 | } 30 | } 31 | } 32 | # [END cloud_sql_mysql_instance_pitr] 33 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_private_ip/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_private_ip 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_psa_psc/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_psa_psc 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_psc/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_psc 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_psc_sa/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_psc_sa 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_public_ip/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_public_ip 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_pvp/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_pvp 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_replica/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_replica 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_ssm/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_mysql_instance_ssm] 18 | resource "google_sql_database_instance" "mysql_ssm_instance_name" { 19 | name = "mysql-ssm-instance-name" 20 | region = "asia-northeast1" 21 | database_version = "MYSQL_5_7" 22 | maintenance_version = "MYSQL_5_7_38.R20220809.02_00" 23 | settings { 24 | tier = "db-f1-micro" 25 | } 26 | # set `deletion_protection` to true, will ensure that one cannot accidentally delete this instance by 27 | # use of Terraform whereas `deletion_protection_enabled` flag protects this instance at the GCP level. 28 | deletion_protection = false 29 | } 30 | # [END cloud_sql_mysql_instance_ssm] 31 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_ssm/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_mysql_instance_ssm 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_switchover/dr_replica_create/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: mysql_instance_switchover_dr_replica_create 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_switchover/dr_replica_designate/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: mysql_instance_switchover_dr_replica_designate 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_switchover/switchover_begin/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: mysql_instance_switchover_switchover_begin 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/mysql_instance_switchover/switchover_finish/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: mysql_instance_switchover_switchover_finish 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_enterprise_edition_instance/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | 18 | # [START cloud_sql_enterprise_instance] 19 | resource "google_sql_database_instance" "default" { 20 | name = "enterprise-instance" 21 | region = "us-central1" 22 | database_version = "POSTGRES_15" 23 | settings { 24 | tier = "db-g1-small" 25 | } 26 | } 27 | # [END cloud_sql_enterprise_instance] 28 | -------------------------------------------------------------------------------- /cloud_sql/postgres_enterprise_plus_edition_instance/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_enterprise_plus_instance] 18 | resource "google_sql_database_instance" "default" { 19 | name = "enterprise-plus-instance" 20 | region = "us-central1" 21 | database_version = "POSTGRES_15" 22 | settings { 23 | tier = "db-perf-optimized-N-96" 24 | edition = "ENTERPRISE_PLUS" 25 | } 26 | } 27 | # [END cloud_sql_enterprise_plus_instance] 28 | -------------------------------------------------------------------------------- /cloud_sql/postgres_enterprise_plus_instance_labels/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_postgres_enterprise_plus_instance_labels] 18 | resource "google_sql_database_instance" "default" { 19 | name = "postgres-enterprise-plus-instance-labels" 20 | region = "us-central1" 21 | database_version = "POSTGRES_15" 22 | settings { 23 | tier = "db-perf-optimized-N-2" 24 | edition = "ENTERPRISE_PLUS" 25 | user_labels = { 26 | track = "production" 27 | billing-code = 34802 28 | } 29 | } 30 | } 31 | # [END cloud_sql_postgres_enterprise_plus_instance_labels] 32 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_authorized_network/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_postgres_instance_authorized_network] 18 | resource "google_sql_database_instance" "default" { 19 | name = "postgres-instance-with-authorized-network" 20 | region = "us-central1" 21 | database_version = "POSTGRES_14" 22 | settings { 23 | tier = "db-custom-2-7680" 24 | ip_configuration { 25 | authorized_networks { 26 | name = "Network Name" 27 | value = "192.0.2.0/24" 28 | expiration_time = "3021-11-15T16:19:00.094Z" 29 | } 30 | } 31 | } 32 | } 33 | # [END cloud_sql_postgres_instance_authorized_network] 34 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_authorized_network/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_authorized_network 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_backup/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_backup 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_backup_location/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_postgres_instance_backup_location] 18 | resource "google_sql_database_instance" "default" { 19 | name = "postgres-instance-with-backup-location" 20 | region = "us-central1" 21 | database_version = "POSTGRES_14" 22 | settings { 23 | tier = "db-custom-2-7680" 24 | backup_configuration { 25 | enabled = true 26 | location = "us-central1" 27 | } 28 | } 29 | } 30 | # [END cloud_sql_postgres_instance_backup_location] 31 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_backup_location/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_backup_location 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_backup_retention/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_postgres_instance_backup_retention] 18 | resource "google_sql_database_instance" "default" { 19 | name = "postgres-instance-backup-retention" 20 | region = "us-central1" 21 | database_version = "POSTGRES_14" 22 | settings { 23 | tier = "db-custom-2-7680" 24 | backup_configuration { 25 | enabled = true 26 | backup_retention_settings { 27 | retained_backups = 365 28 | retention_unit = "COUNT" 29 | } 30 | } 31 | } 32 | } 33 | # [END cloud_sql_postgres_instance_backup_retention] 34 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_backup_retention/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_backup_retention 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_clone/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_clone 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_cmek/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: postgres_instance_cmek 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_flags/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_flags 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_iam_db_auth/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: postgres_instance_iam_db_auth 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_iam_group_auth/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: postgres_instance_iam_group_auth 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_private_ip/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_private_ip 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_psa_psc/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_psa_psc 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_psc/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_psc 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_psc_sa/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_psc_sa 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_public_ip/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_public_ip 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_pvp/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_pvp 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_replica/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_replica 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_ssm/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_postgres_instance_ssm 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_switchover/dr_replica_create/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: postgres_instance_switchover_dr_replica_create 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_switchover/dr_replica_designate/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: postgres_instance_switchover_dr_replica_designate 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_switchover/switchover_begin/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: postgres_instance_switchover_switchover_begin 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/postgres_instance_switchover/switchover_finish/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: postgres_instance_switchover_switchover_finish 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_active_directory/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_sqlserver_instance_active_directory 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_backup/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_sqlserver_instance_backup] 18 | resource "google_sql_database_instance" "default" { 19 | name = "sqlserver-instance-backup" 20 | region = "us-central1" 21 | database_version = "SQLSERVER_2019_STANDARD" 22 | root_password = "INSERT-PASSWORD-HERE" 23 | settings { 24 | tier = "db-custom-2-7680" 25 | backup_configuration { 26 | enabled = true 27 | start_time = "20:55" 28 | } 29 | } 30 | } 31 | # [END cloud_sql_sqlserver_instance_backup] 32 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_backup_location/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_sqlserver_instance_backup_location] 18 | resource "google_sql_database_instance" "default" { 19 | name = "sqlserver-instance-with-backup-location" 20 | region = "us-central1" 21 | database_version = "SQLSERVER_2019_STANDARD" 22 | root_password = "INSERT-PASSWORD-HERE" 23 | settings { 24 | tier = "db-custom-2-7680" 25 | backup_configuration { 26 | enabled = true 27 | location = "us-central1" 28 | } 29 | } 30 | } 31 | # [END cloud_sql_sqlserver_instance_backup_location] 32 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_backup_retention/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_sqlserver_instance_backup_retention] 18 | resource "google_sql_database_instance" "default" { 19 | name = "sqlserver-instance-backup-retention" 20 | region = "us-central1" 21 | database_version = "SQLSERVER_2019_STANDARD" 22 | root_password = "INSERT-PASSWORD-HERE" 23 | settings { 24 | tier = "db-custom-2-7680" 25 | backup_configuration { 26 | enabled = true 27 | backup_retention_settings { 28 | retained_backups = 365 29 | retention_unit = "COUNT" 30 | } 31 | } 32 | } 33 | } 34 | # [END cloud_sql_sqlserver_instance_backup_retention] 35 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_cmek/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sqlserver_instance_cmek 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_ha/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_sqlserver_instance_ha] 18 | resource "google_sql_database_instance" "default" { 19 | name = "sqlserver-instance-ha" 20 | region = "us-central1" 21 | database_version = "SQLSERVER_2019_STANDARD" 22 | root_password = "INSERT-PASSWORD-HERE" 23 | settings { 24 | tier = "db-custom-2-7680" 25 | availability_type = "REGIONAL" 26 | backup_configuration { 27 | enabled = true 28 | start_time = "20:55" 29 | } 30 | } 31 | } 32 | # [END cloud_sql_sqlserver_instance_ha] 33 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_labels/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloud_sql_sqlserver_instance_labels] 18 | resource "google_sql_database_instance" "default" { 19 | name = "sqlserver-instance-labels" 20 | region = "us-central1" 21 | database_version = "SQLSERVER_2019_STANDARD" 22 | root_password = "INSERT-PASSWORD-HERE" 23 | settings { 24 | tier = "db-custom-2-7680" 25 | user_labels = { 26 | track = "production" 27 | billing-code = 34802 28 | } 29 | } 30 | } 31 | # [END cloud_sql_sqlserver_instance_labels] 32 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_private_ip/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sqlserver_instance_private_ip 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_psa_psc/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sqlserver_instance_psa_psc 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_psc/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sqlserver_instance_psc 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_psc_sa/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_sqlserver_instance_psc_sa 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /cloud_sql/sqlserver_instance_ssm/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: sql_sqlserver_instance_ssm 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /composer/multi_project_monitoring/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: composer_multi_project_monitoring 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /composer/triggering_dags_with_functions_and_pubsub/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: composer_triggering_dags_with_functions_and_pubsub 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /compute/firewall_rule_for_health_check/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | * Made to resemble: 18 | * gcloud compute firewall-rules create allow-health-check \ 19 | * --allow tcp:80 \ 20 | * --source-ranges 130.211.0.0/22,35.191.0.0/16 \ 21 | * --network default 22 | */ 23 | 24 | 25 | # [START compute_firewall_rule_for_health_check_tag] 26 | resource "google_compute_firewall" "default" { 27 | name = "allow-health-check" 28 | network = "default" 29 | source_ranges = ["130.211.0.0/22", "35.191.0.0/16"] 30 | allow { 31 | protocol = "tcp" 32 | ports = [80] 33 | } 34 | } 35 | # [END compute_firewall_rule_for_health_check_tag] 36 | 37 | -------------------------------------------------------------------------------- /compute/health_check/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | * Made to resemble: 18 | * gcloud compute health-checks create http example-check --port 80 \ 19 | * --check-interval 30s \ 20 | * --healthy-threshold 1 \ 21 | * --timeout 10s \ 22 | * --unhealthy-threshold 3 \ 23 | * --global 24 | */ 25 | 26 | # [START compute_health_check_tag] 27 | resource "google_compute_http_health_check" "default" { 28 | name = "example-check" 29 | timeout_sec = 10 30 | check_interval_sec = 30 31 | healthy_threshold = 1 32 | unhealthy_threshold = 3 33 | port = 80 34 | } 35 | # [END compute_health_check_tag] 36 | -------------------------------------------------------------------------------- /compute/instance_custom_hostname/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START compute_instances_create_custom_hostname] 18 | 19 | resource "google_compute_instance" "custom_hostname_instance" { 20 | name = "custom-hostname-instance-name" 21 | machine_type = "f1-micro" 22 | zone = "us-central1-c" 23 | 24 | # Set a custom hostname below 25 | hostname = "hashicorptest.com" 26 | 27 | boot_disk { 28 | initialize_params { 29 | image = "debian-cloud/debian-11" 30 | } 31 | } 32 | network_interface { 33 | # A default network is created for all GCP projects 34 | network = "default" 35 | access_config { 36 | } 37 | } 38 | } 39 | 40 | # [END compute_instances_create_custom_hostname] 41 | -------------------------------------------------------------------------------- /compute/instance_template_preemptible/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | * Made to resemble 18 | * gcloud compute instance-templates create preemptible-template \ 19 | * --preemptible 20 | */ 21 | 22 | # [START compute_template_preemptible] 23 | resource "google_compute_instance_template" "default" { 24 | name = "preemptible-template" 25 | machine_type = "n1-standard-1" 26 | disk { 27 | source_image = "debian-cloud/debian-11" 28 | } 29 | network_interface { 30 | network = "default" 31 | } 32 | scheduling { 33 | preemptible = "true" 34 | automatic_restart = "false" 35 | } 36 | } 37 | # [END compute_template_preemptible] 38 | -------------------------------------------------------------------------------- /compute/os_login_ssh_key/id_rsa.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa 2 | sample 3 | user1@sample 4 | -------------------------------------------------------------------------------- /compute/quickstart/create_vm/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2023 Google LLC 3 | * 4 | * 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 | # [START compute_instances_quickstart] 18 | resource "google_compute_instance" "default" { 19 | name = "my-vm" 20 | machine_type = "n1-standard-1" 21 | zone = "us-central1-a" 22 | 23 | boot_disk { 24 | initialize_params { 25 | image = "ubuntu-minimal-2210-kinetic-amd64-v20230126" 26 | } 27 | } 28 | 29 | network_interface { 30 | network = "default" 31 | access_config {} 32 | } 33 | } 34 | # [END compute_instances_quickstart] 35 | -------------------------------------------------------------------------------- /compute/reservation/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START compute_reservation_create_local_reservation] 18 | 19 | resource "google_compute_reservation" "gce_reservation_local" { 20 | name = "gce-reservation-local" 21 | zone = "us-central1-c" 22 | 23 | share_settings { 24 | share_type = "LOCAL" 25 | } 26 | 27 | specific_reservation { 28 | count = 1 29 | instance_properties { 30 | machine_type = "n2-standard-2" 31 | } 32 | } 33 | } 34 | 35 | # [END compute_reservation_create_local_reservation] 36 | -------------------------------------------------------------------------------- /compute/run_shutdown_scripts/shutdown-script.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | # Copyright 2022 Google LLC 3 | # 4 | # 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 | /etc/init.d/apache2 stop 17 | -------------------------------------------------------------------------------- /dns/managed_zone_basic/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START dns_managed_zone_basic] 18 | resource "google_dns_managed_zone" "example_zone" { 19 | name = "example-zone" 20 | dns_name = "example-${random_id.rnd.hex}.com." 21 | description = "Example DNS zone" 22 | labels = { 23 | name = "value" 24 | } 25 | } 26 | 27 | resource "random_id" "rnd" { 28 | byte_length = 4 29 | } 30 | # [END dns_managed_zone_basic] 31 | -------------------------------------------------------------------------------- /dns/managed_zone_private_forwarding/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: dns_managed_zone_private_forwarding 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /dns/managed_zone_reverse_lookup/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # Google Cloud Documentation https://cloud.google.com/dns/docs/zones/managed-reverse-lookup-zones 18 | 19 | # [START dns_managed_zone_reverse_lookup] 20 | resource "google_dns_managed_zone" "default" { 21 | name = "my-new-zone" 22 | description = "Example DNS reverse lookup" 23 | provider = google-beta 24 | visibility = "private" 25 | dns_name = "2.2.20.20.in-addr.arpa." 26 | reverse_lookup = "true" 27 | } 28 | # [END dns_managed_zone_reverse_lookup] 29 | -------------------------------------------------------------------------------- /dns/managed_zone_with_dnssec/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # Google Cloud Documentation: https://cloud.google.com/dns/docs/dnssec-config#creating 18 | # [START dns_managed_zone_with_dnssec] 19 | resource "google_dns_managed_zone" "example" { 20 | name = "example-zone-name" 21 | dns_name = "example.com." 22 | description = "Example Signed Zone" 23 | dnssec_config { 24 | state = "on" 25 | } 26 | } 27 | # [END dns_managed_zone_with_dnssec] 28 | -------------------------------------------------------------------------------- /dns/managed_zone_with_dnssec/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: dns_managed_zone_with_dnssec 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /dns/policy_inbound/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START dns_policy_inbound] 18 | resource "google_dns_policy" "default" { 19 | name = "example-inbound-policy" 20 | enable_inbound_forwarding = true 21 | 22 | networks { 23 | network_url = google_compute_network.default.id 24 | } 25 | } 26 | 27 | resource "google_compute_network" "default" { 28 | name = "network" 29 | auto_create_subnetworks = false 30 | } 31 | # [END dns_policy_inbound] 32 | -------------------------------------------------------------------------------- /dns/policy_outbound/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START dns_policy_outbound] 18 | resource "google_dns_policy" "default" { 19 | name = "example-outbound-policy" 20 | 21 | alternative_name_server_config { 22 | target_name_servers { 23 | ipv4_address = "172.16.1.10" 24 | forwarding_path = "private" 25 | } 26 | target_name_servers { 27 | ipv4_address = "172.16.1.20" 28 | } 29 | } 30 | 31 | networks { 32 | network_url = google_compute_network.default.id 33 | } 34 | } 35 | 36 | resource "google_compute_network" "default" { 37 | name = "network" 38 | auto_create_subnetworks = false 39 | } 40 | # [END dns_policy_outbound] 41 | -------------------------------------------------------------------------------- /dns/record_set_basic/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START dns_record_set_basic] 18 | resource "google_dns_managed_zone" "parent_zone" { 19 | name = "sample-zone" 20 | dns_name = "sample-zone.hashicorptest.com." 21 | description = "Test Description" 22 | } 23 | 24 | resource "google_dns_record_set" "default" { 25 | managed_zone = google_dns_managed_zone.parent_zone.name 26 | name = "test-record.sample-zone.hashicorptest.com." 27 | type = "A" 28 | rrdatas = ["10.0.0.1", "10.1.0.1"] 29 | ttl = 86400 30 | } 31 | # [END dns_record_set_basic] 32 | -------------------------------------------------------------------------------- /functions/basic/functions/hello-world/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2023 Google Inc. 3 | 4 | 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 | const functions = require('@google-cloud/functions-framework'); 17 | 18 | functions.http('helloHttp', (req, res) => { 19 | res.send(`Hello ${req.query.name || req.body.name || 'World'}!`); 20 | }); 21 | -------------------------------------------------------------------------------- /functions/basic/functions/hello-world/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "@google-cloud/functions-framework": "^4.0.0" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /functions/basic_audit_logs/function-source/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2023 Google Inc. 3 | 4 | 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 | const functions = require('@google-cloud/functions-framework'); 17 | 18 | // Register a CloudEvent callback with the Functions Framework that will 19 | // be executed when the Eventarc trigger sends a message. 20 | functions.cloudEvent('entryPoint', cloudEvent => { 21 | 22 | console.log(`Triggered by a CloudEvent, type: ${cloudEvent.type}`); 23 | 24 | if (cloudEvent.bucket != undefined) { 25 | console.log(`The CloudEvent originated from a GCS bucket: ${cloudEvent.bucket}`); 26 | } 27 | }); 28 | -------------------------------------------------------------------------------- /functions/basic_audit_logs/function-source/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "@google-cloud/functions-framework": "^4.0.0" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /functions/basic_gcs/function-source/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2023 Google Inc. 3 | 4 | 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 | const functions = require('@google-cloud/functions-framework'); 17 | 18 | // Register a CloudEvent callback with the Functions Framework that will 19 | // be executed when the Eventarc trigger sends a message. 20 | functions.cloudEvent('entryPoint', cloudEvent => { 21 | 22 | console.log(`Triggered by a CloudEvent, type: ${cloudEvent.type}`); 23 | 24 | if (cloudEvent.bucket != undefined) { 25 | console.log(`The CloudEvent originated from a GCS bucket: ${cloudEvent.bucket}`); 26 | } 27 | }); 28 | -------------------------------------------------------------------------------- /functions/basic_gcs/function-source/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "@google-cloud/functions-framework": "^4.0.0" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /functions/pubsub/function-source/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2023 Google Inc. 3 | 4 | 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 | const functions = require('@google-cloud/functions-framework'); 17 | 18 | // Register a CloudEvent callback with the Functions Framework that will 19 | // be executed when the Pub/Sub trigger topic receives a message. 20 | functions.cloudEvent('helloPubSub', cloudEvent => { 21 | // The Pub/Sub message is passed as the CloudEvent's data payload. 22 | const base64name = cloudEvent.data.message.data; 23 | 24 | const name = base64name 25 | ? Buffer.from(base64name, 'base64').toString() 26 | : 'World'; 27 | 28 | console.log(`Hello, ${name}!`); 29 | }); 30 | -------------------------------------------------------------------------------- /functions/pubsub/function-source/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "@google-cloud/functions-framework": "^4.0.0" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /gke/autopilot/basic/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_autopilot_basic] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-autopilot-basic" 20 | location = "us-central1" 21 | 22 | enable_autopilot = true 23 | } 24 | # [END gke_autopilot_basic] 25 | -------------------------------------------------------------------------------- /gke/autopilot/config_sync/git/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | # The kubernetes_manifest resource can only be used with pre-existing clusters. 16 | apiVersion: blueprints.cloud.google.com/v1alpha1 17 | kind: BlueprintTest 18 | metadata: 19 | name: config_sync_git 20 | spec: 21 | skip: true 22 | -------------------------------------------------------------------------------- /gke/autopilot/config_sync/oci/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | # The kubernetes_manifest resource can only be used with pre-existing clusters. 16 | apiVersion: blueprints.cloud.google.com/v1alpha1 17 | kind: BlueprintTest 18 | metadata: 19 | name: config_sync_oci 20 | spec: 21 | skip: true 22 | -------------------------------------------------------------------------------- /gke/autopilot/iap/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | # The kubernetes_manifest resource can only be used with pre-existing clusters. 16 | apiVersion: blueprints.cloud.google.com/v1alpha1 17 | kind: BlueprintTest 18 | metadata: 19 | name: gke_autopilot_iap 20 | spec: 21 | skip: true 22 | -------------------------------------------------------------------------------- /gke/autopilot/labels/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_autopilot_labels] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-autopilot-labels" 20 | location = "us-central1" 21 | 22 | enable_autopilot = true 23 | 24 | resource_labels = { 25 | foo = "bar" 26 | } 27 | } 28 | # [END gke_autopilot_labels] 29 | -------------------------------------------------------------------------------- /gke/autopilot/release_channel/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_autopilot_release_channel] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-autopilot-release-channel" 20 | location = "us-central1" 21 | 22 | enable_autopilot = true 23 | 24 | release_channel { 25 | channel = "REGULAR" 26 | } 27 | } 28 | # [END gke_autopilot_release_channel] 29 | -------------------------------------------------------------------------------- /gke/autopilot/reservation/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: gke_autopilot_reservation 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /gke/enterprise/config_sync/git/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024-2025 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 | 15 | # The kubernetes_manifest resource can only be used with pre-existing clusters. 16 | apiVersion: blueprints.cloud.google.com/v1alpha1 17 | kind: BlueprintTest 18 | metadata: 19 | name: config_sync_git 20 | spec: 21 | skip: true 22 | -------------------------------------------------------------------------------- /gke/enterprise/config_sync/oci/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024-2025 Google LLC 3 | * 4 | * 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 | # [START gke_enterprise_config_sync_oci] 18 | resource "google_gke_hub_feature" "configmanagement_feature_member" { 19 | name = "configmanagement" 20 | location = "global" 21 | 22 | fleet_default_member_config { 23 | configmanagement { 24 | config_sync { 25 | # The field `enabled` was introduced in Terraform version 5.41.0, and 26 | # needs to be set to `true` explicitly to install Config Sync. 27 | enabled = true 28 | oci { 29 | sync_repo = "REPO" 30 | policy_dir = "DIRECTORY" 31 | secret_type = "SECRET" 32 | } 33 | } 34 | } 35 | } 36 | } 37 | # [END gke_enterprise_config_sync_oci] 38 | -------------------------------------------------------------------------------- /gke/enterprise/config_sync/oci/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024-2025 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 | 15 | # The kubernetes_manifest resource can only be used with pre-existing clusters. 16 | apiVersion: blueprints.cloud.google.com/v1alpha1 17 | kind: BlueprintTest 18 | metadata: 19 | name: config_sync_oci 20 | spec: 21 | skip: true 22 | -------------------------------------------------------------------------------- /gke/enterprise/enable/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_enterprise_enable] 18 | resource "google_project_service" "default" { 19 | for_each = toset([ 20 | "anthos.googleapis.com", 21 | "gkehub.googleapis.com" 22 | ]) 23 | 24 | service = each.value 25 | disable_on_destroy = false 26 | } 27 | # [END gke_enterprise_enable] 28 | -------------------------------------------------------------------------------- /gke/enterprise/mesh/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2025 Google LLC 3 | * 4 | * 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 | # [START gke_enterprise_mesh] 18 | resource "google_project_service" "default" { 19 | for_each = toset([ 20 | "meshconfig.googleapis.com" 21 | ]) 22 | 23 | service = each.value 24 | disable_on_destroy = false 25 | } 26 | 27 | resource "google_gke_hub_feature" "default" { 28 | name = "servicemesh" 29 | location = "global" 30 | 31 | fleet_default_member_config { 32 | mesh { 33 | management = "MANAGEMENT_AUTOMATIC" 34 | } 35 | } 36 | 37 | depends_on = [google_project_service.default] 38 | } 39 | # [END gke_enterprise_mesh] 40 | -------------------------------------------------------------------------------- /gke/standard/regional/binary-authorization/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_standard_regional_binauthz_enforce] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-standard-regional-binauthz-enforce" 20 | location = "us-west1" 21 | initial_node_count = 1 22 | 23 | binary_authorization { 24 | evaluation_mode = "PROJECT_SINGLETON_POLICY_ENFORCE" 25 | } 26 | } 27 | # [END gke_standard_regional_binauthz_enforce] 28 | -------------------------------------------------------------------------------- /gke/standard/regional/hpa-logs/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2025 Google LLC 3 | * 4 | * 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 | # [START gke_standard_regional_hpa_logs] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-standard-hpa-logs" 20 | location = "us-central1" 21 | initial_node_count = 1 22 | 23 | logging_config { 24 | enable_components = ["SYSTEM_COMPONENTS", "KCP_HPA"] 25 | } 26 | } 27 | # [END gke_standard_regional_hpa_logs] 28 | -------------------------------------------------------------------------------- /gke/standard/regional/labels/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_standard_regional_labels] 18 | # [START gke_standard_regional_labels_cluster] 19 | resource "google_container_cluster" "default" { 20 | name = "gke-standard-regional-labels" 21 | location = "us-central1" 22 | initial_node_count = 2 23 | 24 | resource_labels = { 25 | foo = "bar" 26 | } 27 | } 28 | # [END gke_standard_regional_labels_cluster] 29 | # [END gke_standard_regional_labels] 30 | -------------------------------------------------------------------------------- /gke/standard/regional/multi-zone/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_standard_regional_multi_zone] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-standard-regional-multi-zone" 20 | location = "us-central1" 21 | node_locations = ["us-central1-b", "us-central1-c"] 22 | initial_node_count = 2 23 | } 24 | # [END gke_standard_regional_multi_zone] 25 | -------------------------------------------------------------------------------- /gke/standard/regional/ray/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_standard_regional_ray_operator] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-standard-regional-ray-operator" 20 | location = "us-west1" 21 | 22 | initial_node_count = 1 23 | 24 | release_channel { 25 | channel = "RAPID" 26 | } 27 | 28 | addons_config { 29 | ray_operator_config { 30 | enabled = true 31 | ray_cluster_logging_config { 32 | enabled = true 33 | } 34 | ray_cluster_monitoring_config { 35 | enabled = true 36 | } 37 | } 38 | } 39 | } 40 | # [END gke_standard_regional_ray_operator] 41 | -------------------------------------------------------------------------------- /gke/standard/regional/single-zone/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_standard_regional_single_zone] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-standard-regional-single-zone" 20 | location = "us-west1" 21 | node_locations = ["us-west1-c"] 22 | initial_node_count = 2 23 | } 24 | # [END gke_standard_regional_single_zone] 25 | -------------------------------------------------------------------------------- /gke/standard/zonal/dws/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | # DWS Flex is currently behind project allowlist. https://cloud.google.com/kubernetes-engine/docs/concepts/dws#methods 16 | apiVersion: blueprints.cloud.google.com/v1alpha1 17 | kind: BlueprintTest 18 | metadata: 19 | name: gke_standard_zonal_dws 20 | spec: 21 | skip: true 22 | -------------------------------------------------------------------------------- /gke/standard/zonal/gpu/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_standard_zonal_gpu] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-standard-zonal-gpu" 20 | location = "us-central1-a" 21 | initial_node_count = 1 22 | 23 | node_config { 24 | guest_accelerator { 25 | type = "nvidia-tesla-t4" 26 | count = 1 27 | gpu_driver_installation_config { 28 | gpu_driver_version = "LATEST" 29 | } 30 | } 31 | machine_type = "n1-standard-2" 32 | } 33 | } 34 | # [END gke_standard_zonal_gpu] 35 | -------------------------------------------------------------------------------- /gke/standard/zonal/multi-zone/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_standard_zonal_multi_zone] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-standard-zonal-multi-zone" 20 | location = "us-central1-a" 21 | node_locations = ["us-central1-b", "us-central1-c"] 22 | initial_node_count = 2 23 | } 24 | # [END gke_standard_zonal_multi_zone] 25 | -------------------------------------------------------------------------------- /gke/standard/zonal/node_image/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_standard_zonal_node_image] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-standard-zonal-node-image" 20 | initial_node_count = 2 21 | 22 | node_config { 23 | image_type = "cos_containerd" 24 | } 25 | } 26 | # [END gke_standard_zonal_node_image] 27 | -------------------------------------------------------------------------------- /gke/standard/zonal/single-zone/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START gke_standard_zonal_single_zone] 18 | resource "google_container_cluster" "default" { 19 | name = "gke-standard-zonal-single-zone" 20 | location = "us-central1-a" 21 | initial_node_count = 1 22 | } 23 | # [END gke_standard_zonal_single_zone] 24 | -------------------------------------------------------------------------------- /gkeonprem/README.md: -------------------------------------------------------------------------------- 1 | ## Anthos onPrem clusters using Terraform 2 | 3 | The samples for the **gkeonprem_*** resources of the Google terraform provider 4 | are hosted in the [anthos-samples](https://github.com/GoogleCloudPlatform/anthos-samples) 5 | repository. You can find a list of samples for managing Anthos on bare metal and 6 | Anthos on VMware clusters using terraform in the 7 | [**anthos-onprem-terraform**](https://github.com/GoogleCloudPlatform/anthos-samples/tree/main/anthos-onprem-terraform) 8 | directory of that repository. 9 | -------------------------------------------------------------------------------- /iam/create_deny_policy/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: iam_create_deny_policy 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /iam/create_service_agent/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: iam_create_service_agent 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /integrationconnectors/advanced/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: integration_connectors_add_tag 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /integrationconnectors/endpointattachment/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START integrationconnectors_endpoint_attachment_example] 18 | resource "google_integration_connectors_endpoint_attachment" "default" { 19 | name = "test-endpoint-attachment" 20 | location = "us-central1" 21 | description = "tf created description" 22 | service_attachment = "projects/connectors-example/regions/us-central1/serviceAttachments/test" 23 | labels = { 24 | foo = "bar" 25 | } 26 | } 27 | # [END integrationconnectors_endpoint_attachment_example] 28 | 29 | -------------------------------------------------------------------------------- /integrationconnectors/managedzone/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: integration_connectors_add_tag 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /lb/external_http_lb_bucket_backend/images/three-cats.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-docs-samples/fa19511989b8096c9efbdc9262d6980dfe440cb5/lb/external_http_lb_bucket_backend/images/three-cats.jpg -------------------------------------------------------------------------------- /lb/external_http_lb_bucket_backend/images/two-dogs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-docs-samples/fa19511989b8096c9efbdc9262d6980dfe440cb5/lb/external_http_lb_bucket_backend/images/two-dogs.jpg -------------------------------------------------------------------------------- /lb/external_http_lb_mig_backend/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: external_http_lb_mig_backend 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /lb/external_ssl_proxy_lb_mig_backend/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: external_ssl_proxy_lb_mig_backend 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /lb/health_check_region/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloudloadbalancing_regional_health_check] 18 | resource "google_compute_region_health_check" "default" { 19 | name = "tcp-health-check-region-west" 20 | timeout_sec = 5 21 | check_interval_sec = 5 22 | tcp_health_check { 23 | port = "80" 24 | } 25 | region = "us-west1" 26 | } 27 | # [END cloudloadbalancing_regional_health_check] 28 | -------------------------------------------------------------------------------- /lb/health_check_tcp/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloudloadbalancing_health_check_tcp_with_logging] 18 | resource "google_compute_health_check" "health_check_tcp_with_logging" { 19 | provider = google-beta 20 | 21 | name = "health-check-tcp" 22 | 23 | timeout_sec = 1 24 | check_interval_sec = 1 25 | 26 | tcp_health_check { 27 | port = "22" 28 | } 29 | 30 | log_config { 31 | enable = true 32 | } 33 | } 34 | # [END cloudloadbalancing_health_check_tcp_with_logging] 35 | -------------------------------------------------------------------------------- /lb/int_https_lb_https_redirect/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: int_https_lb_https_redirect 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /lb/shared_vpc_http_ilb_with_mig_backend/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: shared_vpc_http_ilb_with_mig_backend 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /lb/shared_vpc_http_ilb_with_mig_backend_basic_example/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: shared_vpc_http_ilb_with_mig_backend_basic_example 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /lb/shared_vpc_http_ilb_with_mig_backend_cross_reference_example/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: shared_vpc_http_ilb_with_mig_backend_cross_reference_example 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /lb/shared_vpc_https_ilb_with_mig_backend_basic_example/sample-private.key: -------------------------------------------------------------------------------- 1 | sample 2 | -------------------------------------------------------------------------------- /lb/shared_vpc_https_ilb_with_mig_backend_basic_example/sample-server.cert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-docs-samples/fa19511989b8096c9efbdc9262d6980dfe440cb5/lb/shared_vpc_https_ilb_with_mig_backend_basic_example/sample-server.cert -------------------------------------------------------------------------------- /lb/shared_vpc_https_ilb_with_mig_backend_basic_example/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: shared_vpc_https_ilb_with_mig_backend_basic_example 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /lb/shared_vpc_https_ilb_with_mig_backend_cross_reference_example/sample-private.key: -------------------------------------------------------------------------------- 1 | sample 2 | -------------------------------------------------------------------------------- /lb/shared_vpc_https_ilb_with_mig_backend_cross_reference_example/sample-server.cert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-docs-samples/fa19511989b8096c9efbdc9262d6980dfe440cb5/lb/shared_vpc_https_ilb_with_mig_backend_cross_reference_example/sample-server.cert -------------------------------------------------------------------------------- /lb/shared_vpc_https_ilb_with_mig_backend_cross_reference_example/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: shared_vpc_https_ilb_with_mig_backend_cross_reference_example 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /lb/target_http_proxy_https_redirect/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloudloadbalancing_target_http_proxy_https_redirect] 18 | resource "google_compute_target_http_proxy" "default" { 19 | name = "test-https-redirect-proxy" 20 | url_map = google_compute_url_map.default.id 21 | } 22 | 23 | resource "google_compute_url_map" "default" { 24 | name = "url-map" 25 | default_url_redirect { 26 | https_redirect = true 27 | strip_query = false 28 | } 29 | } 30 | # [END cloudloadbalancing_target_http_proxy_https_redirect] 31 | -------------------------------------------------------------------------------- /looker/looker_instance_basic/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2023 Google LLC 3 | * 4 | * 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 | # [START looker_google_looker_instance_basic] 18 | # Creates a Standard edition Looker (Google Cloud core) instance with basic functionality enabled. 19 | resource "google_looker_instance" "main" { 20 | name = "my-instance" 21 | platform_edition = "LOOKER_CORE_STANDARD" 22 | region = "us-central1" 23 | oauth_config { 24 | client_id = "my-client-id" 25 | client_secret = "my-client-secret" 26 | } 27 | } 28 | # [END looker_google_looker_instance_basic] 29 | -------------------------------------------------------------------------------- /looker/looker_instance_basic/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: looker_instance_basic 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /looker/looker_instance_enterprise_full/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: looker_instance_enterprise_full 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /looker/looker_instance_full/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: looker_instance_full 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /media_cdn/custom_headers/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: media_cdn_custom_headers 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /media_cdn/dynamic_compression/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: media_cdn_quickstart 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /media_cdn/keyset/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: media_cdn_keyset 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /media_cdn/quickstart/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: media_cdn_quickstart 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /network_connectivity/interconnect/ha_vpn_over_interconnect_10GB_attach/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: ha_vpn_over_interconnect_10GB_attach 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /network_connectivity/interconnect/ha_vpn_over_interconnect_5GB_attach/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: ha_vpn_over_interconnect_5GB_attach 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /network_security/intercept/basic/consumer/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: network_security_intercept_basic_consumer 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /network_security/mirroring/basic/consumer/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: network_security_mirroring_basic_consumer 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /privateca/capool_basic/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START privateca_create_ca_pool] 18 | resource "google_privateca_ca_pool" "default" { 19 | name = "ca-pool" 20 | location = "us-central1" 21 | tier = "ENTERPRISE" 22 | publishing_options { 23 | publish_ca_cert = true 24 | publish_crl = true 25 | } 26 | labels = { 27 | foo = "bar" 28 | } 29 | } 30 | # [END privateca_create_ca_pool] 31 | -------------------------------------------------------------------------------- /privateca/certificate_authority_byo_key/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: privateca_certificate_authority_byo_key 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /privateca/quickstart/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: privateca_quickstart 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/add_tag/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_add_tag 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/cloud_run_configuration_concurrency/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2023 Google LLC 3 | * 4 | * 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 | # Example configuration of a Cloud Run service with concurrency set 18 | 19 | # [START cloudrun_service_configuration_concurrency] 20 | resource "google_cloud_run_v2_service" "default" { 21 | name = "cloudrun-service-concurrency" 22 | location = "us-central1" 23 | 24 | deletion_protection = false # set to "true" in production 25 | 26 | template { 27 | containers { 28 | image = "us-docker.pkg.dev/cloudrun/container/hello" 29 | } 30 | # Maximum concurrent requests 31 | max_instance_request_concurrency = 80 32 | } 33 | } 34 | # [END cloudrun_service_configuration_concurrency] 35 | -------------------------------------------------------------------------------- /run/cloud_run_configuration_cpu_allocation/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2023 Google LLC 3 | * 4 | * 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 | # Example configuration of a Cloud Run service with CPU limit 18 | 19 | # [START cloudrun_service_configuration_cpu_allocation] 20 | resource "google_cloud_run_v2_service" "default" { 21 | name = "cloudrun-service-cpu-allocation" 22 | location = "us-central1" 23 | 24 | deletion_protection = false # set to "true" in production 25 | 26 | template { 27 | containers { 28 | image = "us-docker.pkg.dev/cloudrun/container/hello" 29 | resources { 30 | # If true, garbage-collect CPU when once a request finishes 31 | cpu_idle = false 32 | } 33 | } 34 | } 35 | } 36 | # [END cloudrun_service_configuration_cpu_allocation] 37 | -------------------------------------------------------------------------------- /run/cloud_run_configuration_description/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2023 Google LLC 3 | * 4 | * 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 | # Example configuration of a Cloud Run service with labels 18 | 19 | # [START cloudrun_service_configuration_description] 20 | resource "google_cloud_run_v2_service" "default" { 21 | name = "cloudrun-service-description" 22 | location = "us-central1" 23 | 24 | description = "This service has a custom description" 25 | 26 | deletion_protection = false # set to "true" in production 27 | 28 | template { 29 | containers { 30 | image = "us-docker.pkg.dev/cloudrun/container/hello" 31 | } 32 | } 33 | 34 | } 35 | # [END cloudrun_service_configuration_description] 36 | -------------------------------------------------------------------------------- /run/cloud_run_configuration_http2/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2023 Google LLC 3 | * 4 | * 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 | # Example configuration of a Cloud Run service with h2c enabled 18 | 19 | # [START cloudrun_service_configuration_h2c] 20 | resource "google_cloud_run_v2_service" "default" { 21 | name = "cloudrun-service-h2c" 22 | location = "us-central1" 23 | 24 | deletion_protection = false # set to "true" in production 25 | 26 | template { 27 | containers { 28 | image = "us-docker.pkg.dev/cloudrun/container/hello" 29 | # Enable HTTP/2 30 | ports { 31 | name = "h2c" 32 | container_port = 8080 33 | } 34 | } 35 | } 36 | } 37 | # [END cloudrun_service_configuration_h2c] 38 | -------------------------------------------------------------------------------- /run/cloud_run_configuration_labels/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2023 Google LLC 3 | * 4 | * 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 | # Example configuration of a Cloud Run service with labels 18 | 19 | # [START cloudrun_service_configuration_labels] 20 | resource "google_cloud_run_v2_service" "default" { 21 | name = "cloudrun-service-labels" 22 | location = "us-central1" 23 | 24 | deletion_protection = false # set to "true" in production 25 | 26 | template { 27 | containers { 28 | image = "us-docker.pkg.dev/cloudrun/container/hello" 29 | } 30 | # Labels 31 | labels = { 32 | foo : "bar" 33 | baz : "quux" 34 | } 35 | } 36 | } 37 | # [END cloudrun_service_configuration_labels] 38 | -------------------------------------------------------------------------------- /run/cloud_run_configuration_request_timeout/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2023 Google LLC 3 | * 4 | * 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 | # Example configuration of a Cloud Run service with request timeout 18 | 19 | # [START cloudrun_service_configuration_request_timeout] 20 | resource "google_cloud_run_v2_service" "default" { 21 | name = "cloudrun-service-request-timeout" 22 | location = "us-central1" 23 | 24 | deletion_protection = false # set to "true" in production 25 | 26 | template { 27 | containers { 28 | image = "us-docker.pkg.dev/cloudrun/container/hello" 29 | } 30 | # Timeout 31 | timeout = "300s" 32 | } 33 | } 34 | # [END cloudrun_service_configuration_request_timeout] 35 | -------------------------------------------------------------------------------- /run/custom_domain_mapping/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_custom_domain_mapping 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/deploy_tag/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_deploy_tag 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/direct_vpc/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # Example configuration of a Cloud Run service with direct VPC 18 | 19 | # [START cloudrun_service_direct_vpc] 20 | resource "google_cloud_run_v2_service" "default" { 21 | name = "cloudrun-service" 22 | location = "us-central1" 23 | 24 | deletion_protection = false # set to "true" in production 25 | 26 | template { 27 | containers { 28 | image = "us-docker.pkg.dev/cloudrun/container/hello" 29 | } 30 | vpc_access { 31 | network_interfaces { 32 | network = "default" 33 | subnetwork = "default" 34 | tags = ["tag1", "tag2", "tag3"] 35 | } 36 | } 37 | } 38 | } 39 | # [END cloudrun_service_direct_vpc] 40 | -------------------------------------------------------------------------------- /run/healthchecks_startup_probe_grpc/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_healthchecks_startup_probe_grpc 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/pubsub/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_pubsub 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/remove_tag/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_remove_tag 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/traffic_gradual_rollout/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_traffic_gradual_rollout 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/traffic_latest_revision/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloudrun_traffic_latest_revision_parent_tag] 18 | # [START cloudrun_service_traffic_latest] 19 | resource "google_cloud_run_v2_service" "default" { 20 | name = "my-service" 21 | location = "us-central1" 22 | 23 | deletion_protection = false # set to true to prevent destruction of the resource 24 | 25 | template {} 26 | 27 | traffic { 28 | percent = 100 29 | type = "TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST" 30 | } 31 | } 32 | # [END cloudrun_service_traffic_latest] 33 | # [END cloudrun_traffic_latest_revision_parent_tag] 34 | -------------------------------------------------------------------------------- /run/traffic_latest_revision/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_traffic_latest_revision 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/traffic_rollback/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START cloudrun_service_traffic_rollback] 18 | resource "google_cloud_run_v2_service" "default" { 19 | name = "my-service" 20 | location = "us-central1" 21 | 22 | deletion_protection = false # set to true to prevent destruction of the resource 23 | 24 | template {} 25 | 26 | traffic { 27 | percent = 100 28 | # This revision needs to already exist 29 | revision = "green" 30 | type = "TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION" 31 | 32 | } 33 | } 34 | # [END cloudrun_service_traffic_rollback] 35 | -------------------------------------------------------------------------------- /run/traffic_rollback/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_traffic_rollback 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/traffic_split/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_traffic_split 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /run/traffic_split_tag/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_service_traffic_split_tag 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /securitycenter/securitycenter_v2_endpoint_us/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2025 Google LLC 3 | * 4 | * 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 | # [START securitycenter_v2_endpoint_us] 18 | provider "google" { 19 | alias = "securitycenter_v2_endpoint_us" 20 | security_center_v2_custom_endpoint = "https://securitycenter.us.rep.googleapis.com/v2/" 21 | } 22 | # [END securitycenter_v2_endpoint_us] 23 | -------------------------------------------------------------------------------- /securitycenter/securitycenter_v2_endpoint_us/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2025 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: securitycenter_v2_endpoint_us 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /storage/flask_google_cloud_quickstart/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2023 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: flask_google_cloud_quickstart 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /storage/hmac_key/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START storage_hmac_key] 18 | # Create a new service account 19 | resource "google_service_account" "service_account" { 20 | account_id = "my-svc-acc" 21 | } 22 | 23 | # Create the HMAC key for the associated service account 24 | resource "google_storage_hmac_key" "key" { 25 | service_account_email = google_service_account.service_account.email 26 | } 27 | # [END storage_hmac_key] 28 | -------------------------------------------------------------------------------- /storage/object_lifecycle_setting/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START storage_create_lifecycle_setting_tf] 18 | resource "random_id" "bucket_prefix" { 19 | byte_length = 8 20 | } 21 | 22 | resource "google_storage_bucket" "auto_expire" { 23 | provider = google-beta 24 | name = "${random_id.bucket_prefix.hex}-example-bucket" 25 | location = "US" 26 | uniform_bucket_level_access = true 27 | 28 | lifecycle_rule { 29 | condition { 30 | age = 3 31 | } 32 | action { 33 | type = "Delete" 34 | } 35 | } 36 | } 37 | # [END storage_create_lifecycle_setting_tf] 38 | -------------------------------------------------------------------------------- /storage/remote_terraform_backend_template/README.md: -------------------------------------------------------------------------------- 1 | In this example, we show how to provision a Cloud Storage bucket and then 2 | generate a Terraform backend configuration file. 3 | 4 | To run this example, do the following: 5 | 6 | 1. Initialize Terraform with a local backend: 7 | 8 | terraform init 9 | 10 | 2. Provision resources and create a Cloud Storage bucket for the Terraform 11 | remote backend: 12 | 13 | terraform apply 14 | 15 | 3. Migrate Terraform state to the remote Cloud Storage backend: 16 | 17 | terraform init -migrate-state 18 | 19 | 20 | 21 | 22 | ## Inputs 23 | 24 | No inputs. 25 | 26 | ## Outputs 27 | 28 | No outputs. 29 | 30 | 31 | -------------------------------------------------------------------------------- /storage/remote_terraform_backend_template/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: storage_remote_terraform_backend_template 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /test/setup/iam.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | resource "google_service_account" "int_test" { 18 | project = module.projects[0].project_id 19 | account_id = "ci-account" 20 | display_name = "ci-account" 21 | } 22 | 23 | resource "google_project_iam_member" "int_test" { 24 | count = local.num_projects 25 | 26 | project = local.project_ids[count.index] 27 | role = "roles/owner" 28 | member = "serviceAccount:${google_service_account.int_test.email}" 29 | } 30 | 31 | resource "google_service_account_key" "int_test" { 32 | service_account_id = google_service_account.int_test.id 33 | } 34 | -------------------------------------------------------------------------------- /test/setup/outputs.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | output "project_ids" { 18 | value = local.project_ids 19 | } 20 | 21 | output "sa_key" { 22 | value = google_service_account_key.int_test.private_key 23 | sensitive = true 24 | } 25 | -------------------------------------------------------------------------------- /test/setup/variables.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | variable "org_id" { 17 | description = "The numeric organization id" 18 | } 19 | 20 | variable "folder_id" { 21 | description = "The folder to deploy in" 22 | } 23 | 24 | variable "billing_account" { 25 | description = "The billing account id associated with the project, e.g. XXXXXX-YYYYYY-ZZZZZZ" 26 | } 27 | -------------------------------------------------------------------------------- /vertex_ai/api/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | # [START aiplatform_enable_vertex_ai_api] 18 | # Enable Vertex AI API 19 | resource "google_project_service" "default" { 20 | service = "aiplatform.googleapis.com" 21 | disable_on_destroy = false 22 | } 23 | # [END aiplatform_enable_vertex_ai_api] 24 | -------------------------------------------------------------------------------- /vertex_ai/dataset/test.yaml: -------------------------------------------------------------------------------- 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: dataset 19 | spec: 20 | skip: true 21 | -------------------------------------------------------------------------------- /vertex_ai/endpoint/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2023 Google LLC 3 | * 4 | * 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 | 18 | provider "google" { 19 | region = "us-central1" 20 | } 21 | 22 | # [START aiplatform_create_endpoint_sample] 23 | # Endpoint name must be unique for the project 24 | resource "random_id" "endpoint_id" { 25 | byte_length = 4 26 | } 27 | 28 | resource "google_vertex_ai_endpoint" "default" { 29 | name = substr(random_id.endpoint_id.dec, 0, 10) 30 | display_name = "sample-endpoint" 31 | description = "A sample Vertex AI endpoint" 32 | location = "us-central1" 33 | labels = { 34 | label-one = "value-one" 35 | } 36 | } 37 | # [END aiplatform_create_endpoint_sample] 38 | 39 | -------------------------------------------------------------------------------- /vertex_ai/featurestore/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | 18 | # [START aiplatform_create_featurestore_sample] 19 | # Featurestore name must be unique for the project 20 | resource "random_id" "featurestore_name_suffix" { 21 | byte_length = 8 22 | } 23 | 24 | resource "google_vertex_ai_featurestore" "main" { 25 | name = "featurestore_${random_id.featurestore_name_suffix.hex}" 26 | region = "us-central1" 27 | labels = { 28 | environment = "testing" 29 | } 30 | 31 | online_serving_config { 32 | fixed_node_count = 1 33 | } 34 | 35 | force_destroy = true 36 | } 37 | # [END aiplatform_create_featurestore_sample] 38 | -------------------------------------------------------------------------------- /vertex_ai/metadata_store/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | 18 | # [START aiplatform_create_metadata_store_sample] 19 | resource "google_vertex_ai_metadata_store" "default" { 20 | name = "${random_id.default.hex}-example-store" 21 | description = "Example metadata store" 22 | provider = google-beta 23 | region = "us-central1" 24 | } 25 | 26 | resource "random_id" "default" { 27 | byte_length = 8 28 | } 29 | # [END aiplatform_create_metadata_store_sample] 30 | -------------------------------------------------------------------------------- /vertex_ai/tensorboard/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2023 Google LLC 3 | * 4 | * 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 | 18 | # [START aiplatform_create_tensorboard_sample] 19 | resource "google_vertex_ai_tensorboard" "default" { 20 | display_name = "vertex-ai-tensorboard-sample-name" 21 | region = "us-central1" 22 | } 23 | # [END aiplatform_create_tensorboard_sample] 24 | -------------------------------------------------------------------------------- /vertex_ai/workbench/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | 18 | # [START aiplatform_workbench_basic_gpu_instance] 19 | resource "google_workbench_instance" "default" { 20 | name = "workbench-instance-example" 21 | location = "us-central1-a" 22 | 23 | gce_setup { 24 | machine_type = "n1-standard-1" 25 | accelerator_configs { 26 | type = "NVIDIA_TESLA_T4" 27 | core_count = 1 28 | } 29 | vm_image { 30 | project = "cloud-notebooks-managed" 31 | family = "workbench-instances" 32 | } 33 | } 34 | } 35 | # [END aiplatform_workbench_basic_gpu_instance] 36 | -------------------------------------------------------------------------------- /vertex_ai/workbench_create_metadata/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | 18 | # [START aiplatform_workbench_create_metadata] 19 | resource "google_workbench_instance" "default" { 20 | name = "workbench-instance-example" 21 | location = "us-central1-a" 22 | 23 | gce_setup { 24 | machine_type = "n1-standard-1" 25 | vm_image { 26 | project = "cloud-notebooks-managed" 27 | family = "workbench-instances" 28 | } 29 | metadata = { 30 | key = "value" 31 | } 32 | } 33 | } 34 | # [END aiplatform_workbench_create_metadata] 35 | -------------------------------------------------------------------------------- /vertex_ai/workbench_dataproc/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | 18 | # [START aiplatform_workbench_create_dataproc] 19 | resource "google_workbench_instance" "default" { 20 | name = "workbench-instance-example" 21 | location = "us-central1-a" 22 | 23 | gce_setup { 24 | machine_type = "n1-standard-1" 25 | vm_image { 26 | project = "cloud-notebooks-managed" 27 | family = "workbench-instances" 28 | } 29 | metadata = { 30 | disable-mixer = "false" 31 | } 32 | } 33 | } 34 | # [END aiplatform_workbench_create_dataproc] 35 | -------------------------------------------------------------------------------- /vertex_ai/workbench_idle_shutdown/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | 18 | # [START aiplatform_workbench_create_idle_shutdown] 19 | resource "google_workbench_instance" "default" { 20 | name = "workbench-instance-example" 21 | location = "us-central1-a" 22 | 23 | gce_setup { 24 | machine_type = "n1-standard-1" 25 | vm_image { 26 | project = "cloud-notebooks-managed" 27 | family = "workbench-instances" 28 | } 29 | metadata = { 30 | idle-timeout-seconds = "10800" 31 | } 32 | } 33 | } 34 | # [END aiplatform_workbench_create_idle_shutdown] 35 | -------------------------------------------------------------------------------- /vertex_ai/workbench_remove_metadata/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | 18 | # [START aiplatform_workbench_deleted_metadata] 19 | resource "google_workbench_instance" "default" { 20 | name = "workbench-instance-example" 21 | location = "us-central1-a" 22 | 23 | gce_setup { 24 | machine_type = "n1-standard-1" 25 | vm_image { 26 | project = "cloud-notebooks-managed" 27 | family = "workbench-instances" 28 | } 29 | metadata = { 30 | } 31 | } 32 | } 33 | # [END aiplatform_workbench_deleted_metadata] 34 | -------------------------------------------------------------------------------- /vertex_ai/workbench_update_metadata/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2024 Google LLC 3 | * 4 | * 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 | 18 | # [START aiplatform_workbench_updated_metadata] 19 | resource "google_workbench_instance" "default" { 20 | name = "workbench-instance-example" 21 | location = "us-central1-a" 22 | 23 | gce_setup { 24 | machine_type = "n1-standard-1" 25 | vm_image { 26 | project = "cloud-notebooks-managed" 27 | family = "workbench-instances" 28 | } 29 | metadata = { 30 | key = "updated_value" 31 | } 32 | } 33 | } 34 | # [END aiplatform_workbench_updated_metadata] 35 | -------------------------------------------------------------------------------- /vpc/firewall_with_target_tags/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START compute_firewall_create] 18 | resource "google_compute_firewall" "rules" { 19 | name = "my-firewall-rule" 20 | network = "default" 21 | description = "Creates firewall rule targeting tagged instances" 22 | 23 | allow { 24 | protocol = "tcp" 25 | ports = ["80", "443"] 26 | } 27 | 28 | source_ranges = ["0.0.0.0/0"] 29 | target_tags = ["web"] 30 | } 31 | # [END compute_firewall_create] 32 | -------------------------------------------------------------------------------- /vpc/network_custom_mtu/main.tf: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2022 Google LLC 3 | * 4 | * 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 | # [START vpc_auto_create] 18 | resource "google_compute_network" "vpc_network" { 19 | name = "vpc-network" 20 | auto_create_subnetworks = true 21 | mtu = 1460 22 | } 23 | # [END vpc_auto_create] 24 | -------------------------------------------------------------------------------- /workflows/cloud_run_job/test.yaml: -------------------------------------------------------------------------------- 1 | # Copyright 2024 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 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 16 | kind: BlueprintTest 17 | metadata: 18 | name: cloud_run_job 19 | spec: 20 | skip: true 21 | --------------------------------------------------------------------------------