This is for automated server request on DigitalOcean
Add on main.tf Example,
servers = [
{
name = "server-1",
type = "s-1vcpu-1gb"
}
]
- s-1vcpu-1gb
- s-1vcpu-2gb
- s-2vcpu-2gb
- s-2vcpu-4gb
- s-4vcpu-8gb
- s-8vcpu-16gb
https://jenkins-uow.1ez.xyz/job/SOCaaS/job/terraform-digitalocean/job/master
Outputs:
ips = [
"159.65.9.102",
]
Comment or delete the json, as follow,
# {
# name = "server-1",
# type = "s-1vcpu-1gb"
# }
{
name = "server-1",
type = "s-1vcpu-1gb"
},
{
name = "server-2",
type = "s-1vcpu-1gb"
}