You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: I added only required attributes to the Terraform resources and data sources. we need to see how far we want to go.
Proposal:
Resources
resource"leaseweb_public_cloud_instance""example" {
region=""type=""image_id=""contract_type=""contract_term=""billing_frequency=""root_disk_storage_type=""
}
resp:
{
id =""// get from response
region =""
type =""
image_id =""
contract_type =""
contract_term =""
billing_frequency =""
root_disk_storage_type =""
}
resource"leaseweb_public_cloud_load_balancer""example" {
region=""type=""contract_type=""billing_frequency=""root_disk_storage_type=""target_port=""
}
resp:
{
id =""// get from response
region =""
type =""
contract_type =""
billing_frequency =""
root_disk_storage_type =""// NOTE: this attribute is not in the response, we need to check!
target_port =""
}
resource"leaseweb_public_cloud_load_balancer_listener""example" {
load_balancer_id=""protocol=""port=""
}
resp:
{
id =""// get from response
load_balancer_id =""
protocol =""
port =""
}
resource"leaseweb_public_cloud_credential""example" {
instance_id=""type=""username=""password=""
}
resp:
we have the same example for dedicated server.
resource"leaseweb_public_cloud_auto_scalling_group""example" {
instance_id=""reference=""type=""
}
resp:
{
id =""// get from response
instance_id =""// NOTE: this attribute is not in the response, we need to check!
reference =""
type =""
}
Data-Sources
data"leaseweb_public_cloud_instances""example" {
id=""// optionalreference=""// optionaltype=""// optional, NOTE: we can just use the type name hereregion=""// optionalstate=""// optional
}
resp:
{
instances = [
{
id =""
reference =""
type =""
region =""
state =""
},
...
]
}
data"leaseweb_public_cloud_credentials""example" {
instance_id=""
}
resp:
we have the same example for dedicated server.
data"leaseweb_public_cloud_load_balancers""example" {
id=""// optionalreference=""// optionaltype=""// optionalregion=""// optionalstate=""// optional
}
resp:
{
load_balancers = [
{
id =""
reference =""
type =""
region =""
state =""
},
...
]
}
data"leaseweb_public_cloud_auto_scalling_groups""example" {
instance_id=""// optionalreference=""// optionaltype=""// optionalregion=""// optionalstate=""// optional
}
resp:
{
auto_scalling_groups = [
{
id =""
reference =""
type =""
region =""
state =""
},
...
]
}
Please let me know your opinions about it.
The text was updated successfully, but these errors were encountered:
Minimal requirement to support public cloud in Terraform:
based on the https://developer.leaseweb.com/api-docs/publiccloud_v1.html
Proposal:
Resources
Data-Sources
Please let me know your opinions about it.
The text was updated successfully, but these errors were encountered: