opentelekomcloud / terraform-provider-opentelekomcloud

Terraform OpenTelekomCloud provider
https://registry.terraform.io/providers/opentelekomcloud/opentelekomcloud/latest
Mozilla Public License 2.0
88 stars 77 forks source link

opentelekomcloud_images_image_access_v2 should be able to share multiple images to multiple projects #2716

Open dpakes opened 1 week ago

dpakes commented 1 week ago

Description of the enhancement

Currently, the _opentelekomcloud_images_image_accessv2 resource is using Native OpenStack API _/v2/images/{imageid}/members which causes that member_id variable in the resource is string and because of that terraform can share one image with one member only. When trying to run it again with a different _memberid, it wants to replace the resource with a different member.

There is an API that allows sharing multiple images with multiple projects. This API endpoint requires images and projects to be an array of strings.

This solution is also supported in GUI, where you can provide a list of projects up to 100. image

Would it be possible to apply such a resource that can share images with multiple projects, or is there another solution for that?

Thank you in advance, David