I am having a problem deploying a droplet on DigitalOcean with Terraform. I followed the documentation in the official Terraform website but it does not work. I am getting the following error:
Error: Error creating droplet: POST https://api.digitalocean.com/v2/droplets: 422 The image you specified is not available in the selected region.
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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
I recently deployed a droplet with Terraform on my own and had the same issue. However, I fixed it by doing the following:
1st part (I assume you already did that)
4.link the do_token variable to the provider block:
2nd part