You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the opentelekomcloud_images_image_access_v2 resource is using Native OpenStack API /v2/images/{image_id}/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 member_id, 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.
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
The text was updated successfully, but these errors were encountered:
[Feat.] New `resource/opentelekomcloud_ims_image_share_v1`
Summary of the Pull Request
New resource accepts multiple values for sharing projects (target_project_ids)
PR Checklist
Refers to: #2716
Tests added/passed.
Documentation updated.
Schema updated.
Release notes added.
Acceptance Steps Performed
=== RUN TestAccImsImageShare_basic
=== PAUSE TestAccImsImageShare_basic
=== CONT TestAccImsImageShare_basic
--- PASS: TestAccImsImageShare_basic (158.02s)
PASS
Process finished with the exit code 0
Reviewed-by: Vladimir Vshivkov
Reviewed-by: Muneeb H. Jan <[email protected]>
Reviewed-by: Artem Lifshits
Reviewed-by: Aloento
Description of the enhancement
Currently, the opentelekomcloud_images_image_access_v2 resource is using Native OpenStack API /v2/images/{image_id}/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 member_id, 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.
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
The text was updated successfully, but these errors were encountered: