错误“softlayer_virtual_guest.my_server_1:创建虚拟访客时出错:softlayer-go:无法SoftLayer_Virtual_Guest#createObject
Error "softlayer_virtual_guest.my_server_1: Error creating virtual guest: softlayer-go: could not SoftLayer_Virtual_Guest#createObject
我在 softlayer 上测试 terraform 应用时出现以下错误
在应用 ssh 密钥时被添加到 softlayer 而环境未创建并出现以下错误
softlayer_virtual_guest.my_server_1: Error creating virtual guest: softlayer-go: could not SoftLayer_Virtual_Guest#createObject, HTTP error code: '500'
需要帮助
您可能会提供有关代码的更多信息,并且由于您使用“softlayer-go”作为客户端,了解您使用的是这两个中的哪一个可能会很有用。
https://github.com/sudorandom/softlayer-go
我能够创建一个服务器,我使用的代码是:
provider "softlayer" {
username = "set me"
api_key = "set me"
}
# Virtual Server created with existing SSH Key already in SoftLayer \
# inventory and not created using this Terraform template.
resource "softlayer_virtual_guest" "my_server_1" {
name = "rcvtest-11"
domain = "softlayer.com"
ssh_keys = ["269479"]
image = "DEBIAN_7_64"
region = "ams01"
public_network_speed = 10
cpu = 1
ram = 1024
local_disk = true
hourly_billing = true
}
但是,如果您继续遇到此问题,可以在以下位置报告:
我遇到了同样的问题,我能够通过 运行 找到根本原因:
TF_LOG=DEBUG terraform apply
它显示从 SoftLayer 的 API
发回的 HTTP 响应
我在 softlayer 上测试 terraform 应用时出现以下错误
在应用 ssh 密钥时被添加到 softlayer 而环境未创建并出现以下错误
softlayer_virtual_guest.my_server_1: Error creating virtual guest: softlayer-go: could not SoftLayer_Virtual_Guest#createObject, HTTP error code: '500'
需要帮助
您可能会提供有关代码的更多信息,并且由于您使用“softlayer-go”作为客户端,了解您使用的是这两个中的哪一个可能会很有用。
https://github.com/sudorandom/softlayer-go
我能够创建一个服务器,我使用的代码是:
provider "softlayer" {
username = "set me"
api_key = "set me"
}
# Virtual Server created with existing SSH Key already in SoftLayer \
# inventory and not created using this Terraform template.
resource "softlayer_virtual_guest" "my_server_1" {
name = "rcvtest-11"
domain = "softlayer.com"
ssh_keys = ["269479"]
image = "DEBIAN_7_64"
region = "ams01"
public_network_speed = 10
cpu = 1
ram = 1024
local_disk = true
hourly_billing = true
}
但是,如果您继续遇到此问题,可以在以下位置报告:
我遇到了同样的问题,我能够通过 运行 找到根本原因:
TF_LOG=DEBUG terraform apply
它显示从 SoftLayer 的 API
发回的 HTTP 响应