Zhenguo Niu

Results 20 comments of Zhenguo Niu

@marciobarbato You can use cbr_vault.resources to assigned to VMs https://registry.terraform.io/providers/huaweicloud/huaweicloud/latest/docs/resources/cbr_vault#resources

> @niuzhenguo thank you for your suggestion, I managed to get backup vault associated to the VM. If I may ask something else on this topic, I'd like to dynamically...

> Thanks @niuzhenguo, can we put a request as a desirable feature for the future ? Sure, you can create a request to CBR service, when they provide this feature,...

I was thinking that you need to ask CBR to support this. But seems you can use ecs instance data source to list the instances and assign them to CBR...

https://registry.terraform.io/providers/huaweicloud/huaweicloud/latest/docs/data-sources/compute_instances but seems we don't have tags support here for now.

If you choose to use this way, it will only fetching the instances with your specified tags when you create CBR vault. The newly created instances with that tags will...

it's not possible to do that on Terraform side, needs Vault to support such feature, and we integrate it on TF, so needs to push Vault team to add this...

@marciobarbato Seems we already supported this, pls try https://registry.terraform.io/providers/huaweicloud/huaweicloud/latest/docs/resources/cbr_vault#bind_rules

No API support on service side, so we can't integrate it with terraform.