Closed roberthluo closed 1 year ago
@likexian Can you help with this?
Hello @roberthluo
Please configure internet_charge_type
and set to BANDWIDTH_PACKAGE
.
"builders": [
{
"internet_charge_type": "BANDWIDTH_PACKAGE",
...
}
]
@likexian Hi, I have inserted
internet_charge_type = "BANDWIDTH_PACKAGE"
into my source block but the same error came up.
Also tried
internet_charge_type = "POSTPAID_BY_HOUR"
@likexian Hi, I have inserted
internet_charge_type = "BANDWIDTH_PACKAGE"
into my source block but the same error came up.Please paste the logs.
==> tencentcloud-cvm.testPacker_DS_config: Trying to create a new instance...
==> tencentcloud-cvm.testPacker_DS_config: Failed to run instance: [TencentCloudSDKError] Code=InvalidPermission, Message=Bandwidth package user does not support the value `TRAFFIC_POSTPAID_BY_HOUR` in the parameter `.InternetAccessible.InternetChargeType`, RequestId=7ec8195f-a9d6-44c7-a9b5-5056a3f76995
==> tencentcloud-cvm.testPacker_DS_config: Pausing before cleanup of step 'stepConfigSecurityGroup'. Press enter to continue.
==> tencentcloud-cvm.testPacker_DS_config: Pausing before cleanup of step 'stepConfigSubnet'. Press enter to continue.
==> tencentcloud-cvm.testPacker_DS_config: Pausing before cleanup of step 'stepConfigVPC'. Press enter to continue.
==> tencentcloud-cvm.testPacker_DS_config: Pausing before cleanup of step 'stepConfigKeyPair'. Press enter to continue.
==> tencentcloud-cvm.testPacker_DS_config: Pausing before cleanup of step 'stepCheckSourceImage'. Press enter to continue.
==> tencentcloud-cvm.testPacker_DS_config: Pausing before cleanup of step 'stepPreValidate'. Press enter to continue.
Build 'tencentcloud-cvm.testPacker_DS_config' errored after 15 seconds 444 milliseconds: [TencentCloudSDKError] Code=InvalidPermission, Message=Bandwidth package user does not support the value `TRAFFIC_POSTPAID_BY_HOUR` in the parameter `.InternetAccessible.InternetChargeType`, RequestId=7ec8195f-a9d6-44c7-a9b5-5056a3f76995
Hello @nicholasleeeee
I am sorry, I check the code and found that setting internet_charge_type
is not supported, I will open a PR to implemente it.
Closing as this was fixed by PR #49
I used Packer to build the image and it errored out after 10 min.
Version 1.7.6