The simpler solution is to use their ready-made Debian images, which can be easily configured via CLI or API.