From 0f14aa88b370669aef83e0d4fecec566fa859d62 Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Thu, 18 Mar 2021 09:06:31 +0000 Subject: [PATCH] Update bandwidth charge_mode to traffic This updates the default bandwidth charge_mode from bandwidth to traffic as it's not supported in some regions --- huaweicloud/step_allocate_ip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/huaweicloud/step_allocate_ip.go b/huaweicloud/step_allocate_ip.go index 48c94ce7..d562d59e 100644 --- a/huaweicloud/step_allocate_ip.go +++ b/huaweicloud/step_allocate_ip.go @@ -174,7 +174,7 @@ func (s *StepAllocateIp) createEIP(ui packer.Ui, config *Config, stateBag multis Bandwidth: eips.BandwidthOpts{ Size: s.EIPBandwidthSize, ShareType: "PER", - ChargeMode: "bandwidth", + ChargeMode: "traffic", Name: fmt.Sprintf("packer_eip_bandwidth_%v", time.Now().Unix()), }, }