terraform-provider-scaleway
terraform-provider-scaleway copied to clipboard
`scaleway_mongodb_instance` instance should support TLS certificate-related attributes
trafficstars
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Right now, the only way to get the TLS certificates of a Terraform-generated scaleway_mongodb_instance is to do it manually through the Scaleway dashboard.
At minimum, we should be able to export its base64 representation using a scaleway_mongodb_instance attribute. This would allow the complete Terraform set up of an auth-protected, managed MongoDB service. Without this additional attribute, right now it doesn't seem to be possible?
New or Affected Resource(s)
scaleway_mongodb_instance
Potential Terraform Configuration
resource "scaleway_mongodb_instance" "main" {
name = "mcv-api-staging"
version = "7.0.12"
node_type = "MGDB-PLAY2-NANO"
node_number = 1
user_name = "admin"
password = random_password.document_store_password.result
volume_size_in_gb = 5
}
# In outputs.tf:
output "document_store_tls_certificate_b64" {
value = scaleway_mongodb_instance.main.tls_certificate_b64
}
References
- ?