hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.29k stars 1.72k forks source link

Add ssl config for Oracle google_datastream_connection_profile #19129

Open dxi31 opened 1 month ago

dxi31 commented 1 month ago

Community Note

Description

Ability to specify CA certificates for Oracle DB google_datastream_connection_profile.

Right now it is only possible to add certs via GCP Console and REST Api as stated here: https://cloud.google.com/datastream/docs/reference/rest/v1/projects.locations.connectionProfiles#oraclesslconfig

You can do something similar to ssl_config for MySQL: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/datastream_connection_profile#ssl_config

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_datastream_connection_profile" "oracle-source" {

  display_name          = "Oracle-source"
  location              = var.gcp_region
  connection_profile_id = "oracle-source"

  oracle_profile {
    hostname         = var.oracle_proxy_ip
    port             = var.oracle_proxy_port
    username         = var.oracle_username
    password         = var.oracle_password
    database_service = var.oracle_sid
    ssl_config {
      ca_certificate=""
    }
  }
 ...
 }

References

No response

b/360124898

ggtisc commented 1 month ago

Currently the ssl_config argument is only available for MySQL