By darkeve
Hi, I am trying to launch my terraform script to create a droplet but I seem to get a connection refused message with any terraform apply command as follows shows it cannot retrieve my ssh key from my account. I am using terraform 0.14 and the digitalocean 2.6 provider. Also running this on Arch Linux. Using the write API key with read and write access as well.
Error: Error retrieving ssh keys: Get "https://api.digitalocean.com/v2/account/keys?page=1&per_page=200": dial tcp: lookup api.digitalocean.com on [::1]:53: read udp [::1]:55759->[::1]:53: read: connection refused
on providers.tf line 16, in data "digitalocean_ssh_key" "terraform":
16: data "digitalocean_ssh_key" "terraform" {
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!
Hi there,
What I could suggest is running a traceroute to the api.digitalocean.com hostname and see where the connections is dropping exactly:
traceroute api.digitalocean.com
Regards, Bobby
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.