Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to set sslMode for PostgreSQL instances #543

Closed
kliffordmanto opened this issue Nov 23, 2023 · 0 comments · Fixed by #547
Closed

Not able to set sslMode for PostgreSQL instances #543

kliffordmanto opened this issue Nov 23, 2023 · 0 comments · Fixed by #547
Labels
bug Something isn't working

Comments

@kliffordmanto
Copy link

kliffordmanto commented Nov 23, 2023

TL;DR

ssl_mode is supported in the underlying resource: https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/sql_database_instance#ssl_mode but there's no way to set it from the module.

Expected behavior

We should be able to set ssl_mode.

object({
    authorized_networks                           = optional(list(map(string)), [])
    ipv4_enabled                                  = optional(bool, true)
    private_network                               = optional(string)
    require_ssl                                   = optional(bool)
    allocated_ip_range                            = optional(string)
    enable_private_path_for_google_cloud_services = optional(bool, false)
    psc_enabled                                   = optional(bool, false)
    psc_allowed_consumer_projects                 = optional(list(string), [])
  })

Observed behavior

No way to set ssl_mode

Terraform Configuration

ip_configuration = {
    ipv4_enabled        = true
    private_network     = local.vpc_network
    require_ssl         = false
    authorized_networks = []
  }


### Terraform Version

$ terraform --version
Terraform v1.5.7



### Additional information

_No response_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant