hashicorp / packer-plugin-azure

Packer plugin for Azure Virtual Machine Image Builders
https://www.packer.io/docs/builders/azure
Mozilla Public License 2.0
51 stars 80 forks source link

Add ability to set replica count per region for each shared image gallery destination region #386

Closed nywilken closed 5 months ago

nywilken commented 6 months ago

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 "me too" comments, 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

When publishing to a Shared Image Gallery using the target_region block I would like to have an option for setting individual replica counts per regions as opposed to on global count in shared_image_gallery_replica_count.

Use Case(s)

Users may want to set different replica counts per region to reduce cost and resiliency per region.

Potential configuration

  shared_image_gallery_destination {
    subscription         = var.subscription_id
    resource_group       = var.gallery_resource_group
    gallery_name         = var.gallery
    image_name           = var.box_name
    image_version        = var.version
    storage_account_type = "Standard_LRS"
    target_region   {
       name = "us-east-1"
       replicas = 20
    }
    target_region   {
       name = "us-west-2"
       replicas = 5
    }
  }

Potential References

https://discuss.hashicorp.com/t/packer-arm-regionalreplicacount/63513

github-actions[bot] commented 6 months ago
This issue has been synced to JIRA for planning.
JIRA ID: [HPR-1676](https://hashicorp.atlassian.net/browse/HPR-1676)