Skip to content

Commit 874c722

Browse files
committed
Allow setting SSL type on connection profiles
1 parent 3c558b6 commit 874c722

7 files changed

+11
-2
lines changed

mmv1/products/databasemigrationservice/ConnectionProfile.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,11 @@ properties:
232232
type: Enum
233233
description: |
234234
The current connection profile state.
235-
output: true
236235
enum_values:
237236
- 'SERVER_ONLY'
238237
- 'SERVER_CLIENT'
238+
- 'REQUIRED'
239+
- 'NONE'
239240
- name: 'clientKey'
240241
type: String
241242
description: |
@@ -326,10 +327,11 @@ properties:
326327
type: Enum
327328
description: |
328329
The current connection profile state.
329-
output: true
330330
enum_values:
331331
- 'SERVER_ONLY'
332332
- 'SERVER_CLIENT'
333+
- 'REQUIRED'
334+
- 'NONE'
333335
- name: 'clientKey'
334336
type: String
335337
description: |

mmv1/templates/terraform/examples/database_migration_service_connection_profile_cloudsql.tf.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ resource "google_database_migration_service_connection_profile" "{{$.PrimaryReso
4444
client_key = google_sql_ssl_cert.sql_client_cert.private_key
4545
client_certificate = google_sql_ssl_cert.sql_client_cert.cert
4646
ca_certificate = google_sql_ssl_cert.sql_client_cert.server_ca_cert
47+
type = "SERVER_CLIENT"
4748
}
4849
cloud_sql_id = "{{index $.Vars "sqldb"}}"
4950
}

mmv1/templates/terraform/examples/database_migration_service_connection_profile_postgres.tf.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ resource "google_database_migration_service_connection_profile" "{{$.PrimaryReso
3939
client_key = google_sql_ssl_cert.sql_client_cert.private_key
4040
client_certificate = google_sql_ssl_cert.sql_client_cert.cert
4141
ca_certificate = google_sql_ssl_cert.sql_client_cert.server_ca_cert
42+
type = "SERVER_CLIENT"
4243
}
4344
cloud_sql_id = "{{index $.Vars "sqldb"}}"
4445
}

mmv1/templates/terraform/examples/database_migration_service_migration_job_mysql_to_mysql.tf.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ resource "google_database_migration_service_connection_profile" "source_cp" {
4242
client_key = google_sql_ssl_cert.source_sql_client_cert.private_key
4343
client_certificate = google_sql_ssl_cert.source_sql_client_cert.cert
4444
ca_certificate = google_sql_ssl_cert.source_sql_client_cert.server_ca_cert
45+
type = "SERVER_CLIENT"
4546
}
4647
cloud_sql_id = "{{index $.Vars "source_csql"}}"
4748
}

mmv1/templates/terraform/examples/database_migration_service_migration_job_postgres_to_alloydb.tf.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ resource "google_database_migration_service_connection_profile" "source_cp" {
4242
client_key = google_sql_ssl_cert.source_sql_client_cert.private_key
4343
client_certificate = google_sql_ssl_cert.source_sql_client_cert.cert
4444
ca_certificate = google_sql_ssl_cert.source_sql_client_cert.server_ca_cert
45+
type = "SERVER_CLIENT"
4546
}
4647
cloud_sql_id = "{{index $.Vars "source_csql"}}"
4748
}

mmv1/templates/terraform/examples/database_migration_service_migration_job_postgres_to_postgres.tf.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ resource "google_database_migration_service_connection_profile" "source_cp" {
4242
client_key = google_sql_ssl_cert.source_sql_client_cert.private_key
4343
client_certificate = google_sql_ssl_cert.source_sql_client_cert.cert
4444
ca_certificate = google_sql_ssl_cert.source_sql_client_cert.server_ca_cert
45+
type = "SERVER_CLIENT"
4546
}
4647
cloud_sql_id = "{{index $.Vars "source_csql"}}"
4748
}

mmv1/third_party/terraform/services/databasemigrationservice/resource_database_migration_service_migration_job_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ resource "google_database_migration_service_connection_profile" "source_cp" {
8888
client_key = google_sql_ssl_cert.source_sql_client_cert.private_key
8989
client_certificate = google_sql_ssl_cert.source_sql_client_cert.cert
9090
ca_certificate = google_sql_ssl_cert.source_sql_client_cert.server_ca_cert
91+
type = "SERVER_CLIENT"
9192
}
9293
cloud_sql_id = "tf-test-source-csql%{random_suffix}"
9394
}
@@ -195,6 +196,7 @@ resource "google_database_migration_service_connection_profile" "source_cp" {
195196
client_key = google_sql_ssl_cert.source_sql_client_cert.private_key
196197
client_certificate = google_sql_ssl_cert.source_sql_client_cert.cert
197198
ca_certificate = google_sql_ssl_cert.source_sql_client_cert.server_ca_cert
199+
type = "SERVER_CLIENT"
198200
}
199201
cloud_sql_id = "tf-test-source-csql%{random_suffix}"
200202
}

0 commit comments

Comments
 (0)