By bytencode
Hi
I’m trying to setup my database backups so that they are stored in a DO Space.
My infrastructure on DO is created using Terraform and provisioned using Ansible.
So my approach was to use Terraform’s digitalocean_spaces_bucket resource (it’s the only one that seems to handle Spaces) and then use Ansible to push the backup script that will use s3cmd.
My problem is that Terraform can’t create the Space. It gives me this error:
Error creating Spaces bucket: RequestError: send request failed
caused by: Put https://***.digitaloceanspaces.com/: dial tcp: lookup ***.digitaloceanspaces.com on *.*.*.*:*: no such host
The * are the identifiable parts I removed.
My assumption here is that Terraform can only create a bucket after the Space exists.
Is this correct? And if so how would you go about setting this up?
Thanks in advance for your insights
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!
Nevermind
I didn’t realize that Spaces were not available on the London region (all my other assets are there), and Terraform’s error was not realy helpful.
Setting it to Frankfurt worked fine.
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.