Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I am trying to implement a lambda function that creates a droplet. However, after the creation line of code, lambda stucks, and timeouts. In addition, in most of cases, it cannot create a droplet. The result is the same even I have extended the timeout range. Also, it means lots of billing from aws. I am running the same code in local python (in my laptop), there is no problem. What can I do? here is the code:
import digitalocean
manager = digitalocean.Manager(token="token")
my_droplets = manager.get_all_droplets()
for droplet in my_droplets:
d = droplet.load()
if d.name == 'mefJitsi3':
print('found')
print(d.ip_address)
exit()
#print(my_droplets)
print('not found')
keys = manager.get_all_sshkeys()
droplet = digitalocean.Droplet(token="token",
name='mefJitsi3',
region='fra1', # Amster
image='58038226', # Ubuntu 14.04 x64
size_slug='s-1vcpu-1gb', # 512MB
ssh_keys=keys, #Automatic conversion
backups=False)
droplet.create() # code stucks here
9c1989c1c80144c7a9977905ce64c9
Scott H
1e6b823ea20d4cb189a34a922f5588
Rory McEwan
lan
kprichard
realmag777
Edward Narrdo
Vinoth K