Closed mosuke5 closed 7 years ago
Are you using the latest release? https://github.com/alibaba/packer-provider/releases
yes. I'm using packer version v1.0.3 and alibaba provider v1.1.2. and I move provider packages into same directory as packer.
% ll /usr/local/bin | grep packer
-rwxr-xr-x@ 1 shinyamori staff 54447660 7 17 16:54 packer
-rwxr-xr-x@ 1 shinyamori staff 18641340 7 20 11:45 packer-builder-alicloud-ecs
-rwxr-xr-x@ 1 shinyamori staff 18641340 7 20 11:45 packer-post-processor-alicloud-import
please check this commit: https://github.com/alibaba/packer-provider/commit/e0b00fc8f43015d62b787a93044d7df6537b7dd8 @zhuzhih2017 has fixed this kind of problem in release v1.1.2 and I just built my image without any problem yesterday.
@mosuke5 I can create the image successful in my local environment with your script and I check the error message your pasted and some internal constrain violation in your request and I'm checking the root cause.
@mosuke5, currently, ECS is only support charge type PayByTraffic for the site outer of China, but the default value is "PayByBandwidth", you can add following line in the template script.
"internet_charge_type":"PayByTraffic",
I'll update the sample and add above line to avoid fail for the user.
@mosuke5 You can add "internet_charge_type":"PayByTraffic", and try again. If still have problem, you can reopen this issue. Thanks.
Thank you very much. I confirmed it works well.
and this announcement is good! https://www.alibabacloud.com/notice/Alibaba-Cloud-Supports-Packer-and-Terraform
hi I'm mosuke5. I tried to use packer-provider. but following error happened. When allocationg eip to ecs instance, error happened. Do you know this reason?
I used this template json.