1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- project_id = "YOUR_PROJECT_ID"
16- region = "europe-west1"
17- zone = "europe-west1-c"
15+ project_id = "YOUR_PROJECT_ID"
16+ region = "europe-west1"
17+ zone = "europe-west1-c"
18+ artifact_registry_region = "europe-west1"
19+ cloud_build_region = "europe-west1"
20+ secret_manager_region = "europe-west1"
21+ secure_source_manager_region = "europe-west4"
22+
23+ # If you don't need or want to enable APIs, set this to false.
24+ #enable_apis = false
1825
1926# If you don't need private access to Artifact Registry, set this to false.
2027#create_dns_zones = false
@@ -57,16 +64,16 @@ abfs_spanner_database_create_tables = true
5764
5865create_cloud_workstation_resources = true
5966cws_clusters = {
60- "cws-abfs-cluster " = {
67+ "cws" = {
6168 network = "default"
6269 region = "europe-west1"
6370 subnetwork = "default"
6471 }
6572}
6673cws_configs = {
67- "cws-abfs-config " = {
68- cws_cluster = "cws-abfs-cluster "
69- idle_timeout = 3600
74+ "cws-abfs" = {
75+ cws_cluster = "cws"
76+ idle_timeout_seconds = 3600
7077 machine_type = "e2-standard-8"
7178 boot_disk_size_gb = 64
7279 disable_public_ip_addresses = true
@@ -76,13 +83,19 @@ cws_configs = {
7683 persistent_disk_fs_type = "ext4"
7784 persistent_disk_type = "pd-ssd"
7885 persistent_disk_reclaim_policy = "RETAIN"
86+ custom_image_names = [
87+ "android-studio",
88+ "android-studio-for-platform",
89+ "code-oss",
90+ "repo-builder"
91+ ]
7992 creators = [
80938194 ]
8295 instances = [
8396 {
84- name = "cws-abfs-instance "
85- 97+ name = "cws-abfs"
98+ 8699 }
87100 ]
88101 }
@@ -91,10 +104,41 @@ cws_configs = {
91104# Example for custom images for Cloud Workstations.
92105# The key of the map is the name of the image to be built.
93106cws_custom_images = {
94- "asfp" = {
95- # Optional: The region for the Cloud Scheduler job, defaults to the region of the Cloud Build trigger.
96- scheduler_region = "europe-west1"
97- # Optional: The schedule for the image rebuild, defaults to daily at 3 AM.
98- ci_schedule = "0 3 * * *"
107+ "android-studio" : {
108+ build = {
109+ # Optional: The relative path to the Dockerfile within the repository.
110+ dockerfile_path = "examples/images/android/android-studio"
111+ # Optional: The timeout for the build in seconds, defaults to 7200.
112+ timeout_seconds = 7200
113+ # Optional: The machine type to use for the build, defaults to "UNSPECIFIED".
114+ machine_type = "E2_HIGHCPU_32"
115+ }
116+ #workstation_config = {
117+ # # Optional: The region for the Cloud Scheduler job, defaults to the region of the Cloud Build trigger.
118+ # scheduler_region = "europe-west1"
119+ # # Optional: The schedule for the image rebuild, defaults to daily at 3 AM.
120+ # ci_schedule = "0 3 * * *"
121+ #}
122+ },
123+ "android-studio-for-platform" = {
124+ build = {
125+ dockerfile_path = "examples/images/android-open-source-project/android-studio-for-platform"
126+ timeout_seconds = 7200
127+ machine_type = "E2_HIGHCPU_32"
128+ }
99129 }
130+ "code-oss" : {
131+ build = {
132+ dockerfile_path = "examples/images/android-open-source-project/code-oss"
133+ timeout_seconds = 7200
134+ machine_type = "E2_HIGHCPU_32"
135+ }
136+ },
137+ "repo-builder" : {
138+ build = {
139+ dockerfile_path = "examples/images/android-open-source-project/repo-builder"
140+ timeout_seconds = 7200
141+ machine_type = "E2_HIGHCPU_32"
142+ }
143+ },
100144}
0 commit comments