IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
341 stars 667 forks source link

The ability to attach a sm instance at vpc cluster creation is missing #5123

Open vburckhardt opened 8 months ago

vburckhardt commented 8 months ago

Community Note

Description

ibm_container_ingress_instance allows to attach an instance after creation, but it is not possible to attach an instance at cluster creation through the provider.

The capability exists in the CLI: https://cloud.ibm.com/docs/openshift?topic=openshift-secrets-mgr#secrets-mgr_cluster_create

New or Affected Resource(s)

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

References

hkantare commented 8 months ago

@attilatabori Can some one from team look into this

theodoracheng commented 8 months ago

@vburckhardt This is the expected behavior - configurations are limited in the cluster configuration resource to limit complexity. The recommended approach is to create the cluster first, then register a default Secrets Manager instance immediately after. Doing so will result in the ingress domain TLS certificates being uploaded to the corresponding Secrets Manager instance.

vburckhardt commented 7 months ago

Hello @theodoracheng - the terraform provider should surface the same capabilities as the IBM Cloud CLI / API. This is an overall design goal. I do not think the argument around "limiting complexity" makes sense here.