IBM-Cloud / terraform-provider-ibm

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

ibm_container_vpc_cluster does not output the ALB #5412

Open pauljegouic opened 3 weeks ago

pauljegouic commented 3 weeks ago

The resource ibm_container_vpc_cluster does not output the name/id of the loadbalancer as mentionned in the doc.

It is always null.

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/container_vpc_cluster#attribute-reference

We need this since the Security Group provisionned with the ALB is not secured, thus we need to customize it (inbound and outbound).

We have another way to retrieve it, but it is based on your naming convention. Not sure it's a good practice.

@hkantare

Regards,

vburckhardt commented 2 weeks ago

The ocp module works around those limitations - check this out https://github.com/terraform-ibm-modules/terraform-ibm-base-ocp-vpc/tree/05e504dbd0e3057171616ec98bfb9f96d7d45813/examples/custom_sg