By ccrudgington
1 error(s) occurred:
digitalocean_droplet.master: 1 error(s) occurred:
digitalocean_droplet.master: Error creating droplet: POST https://api.digitalocean.com/v2/droplets: 422 You specified an invalid image for Droplet creation.
Terraform does not automatically rollback in the face of errors. Instead, your Terraform state file has been partially updated with any resources that successfully completed. Please address the error above and apply again to incrementally change your infrastructure.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
With Terraform, the image value should be the “slug” of a public DigitalOcean image or the ID of a snapshot you’ve taken of a Droplet. You can get the full list of DigitalOcean image slugs by querying the API: https://api.digitalocean.com/v2/images
For reference, here are the slugs for the available versions of CentOS:
| Version | Slug |
|---|---|
| 6.9 x32 | centos-6-x32 |
| 6.9 x64 | centos-6-x64 |
| 7.4 x64 | centos-7-x64 |
Other base distribution images follow the same pattern.
Check out the images section of the API documentation for more information:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.