Comments (15)
I took a stab at adding some partial support in #66. I'm able to spin up and tear down buckets with that resource. My end goal however is to ultimately get a Spaces backend working for remote state files etc.
EDIT: I submitted #77 as an attempt to get this working with the AWS Go SDK. I think that's more likely to be merged over #66.
from terraform-provider-digitalocean.
FYI using a DO space as an s3 backend works while we wait for #77 to get merged.
You need to create a Spaces access key and a bucket.
terraform {
backend "s3" {
skip_requesting_account_id = true
skip_credentials_validation = true
skip_get_ec2_platforms = true
skip_metadata_api_check = true
access_key = ""
secret_key = ""
endpoint = "nyc3.digitaloceanspaces.com"
region = "us-east-1" # Requires any valid AWS region
bucket = "" # Space name
key = "example-folder/terraform.tfstate"
}
}
from terraform-provider-digitalocean.
Initial support for Spaces is now available in v1.12.0. In order to upgrade an existing project to the latest version, run:
terraform init -upgrade
You can find the full changelog here: https://github.com/terraform-providers/terraform-provider-digitalocean/blob/master/CHANGELOG.md#120-april-23-2019
I'm going to go ahead and close this issue out. Let's track any additional feature requests independently.
from terraform-provider-digitalocean.
Hi, actually DigitalOcean doesn't provide any public api for spaces 😞.
Ref: digitalocean/godo#150
from terraform-provider-digitalocean.
Now it looks like there is an API for spaces.
https://developers.digitalocean.com/documentation/spaces/
from terraform-provider-digitalocean.
I got the phpleague flysystem working by treating digital ocean spaces exactly as s3, took a while but I think DO have matched the api. I will give it a go tonight
from terraform-provider-digitalocean.
@radeksimko Due to DigitalOcean providing an S3 compatible API, would it make sense to just mirror the Amazon S3 implementation for what DigitalOcean supports at this time?
from terraform-provider-digitalocean.
Yes please!
from terraform-provider-digitalocean.
If nobody is currently working on this, I would like to take a swing. Really want spaces usage from tf.
from terraform-provider-digitalocean.
@abaez I don't think anyone has taken a crack at this yet. It is definitely on my to-do list and I was planning on sitting down to try and work something out this weekend.
from terraform-provider-digitalocean.
from terraform-provider-digitalocean.
Hey guys! Any updates about spaces support?
from terraform-provider-digitalocean.
Can this be closed? Or is there something more to do?
from terraform-provider-digitalocean.
@andrewsomething is this safe to cut a release and close?
We should probably add custom subdomains for Spaces in a separate issue? godo already has support digitalocean/godo#207
edit: wrong link
from terraform-provider-digitalocean.
@eddiezane We'll likely be cutting a release next week. There is some work in-flight.
from terraform-provider-digitalocean.
Related Issues (20)
- digitalocean_spaces_bucket_cors_configuration: Updating allowed origins has no effect HOT 4
- Add optional "signature" field for `digitalocean_custom_image` resources
- Missing registry_credentials in digitalocean_app.service.image for registry_type = "GHCR" HOT 4
- feature: resource for firewall rule
- digitalocean_cdn custom domain certificate fails "invalid certificate issued by Cloudflare origin CA" HOT 1
- Add Postgres database attributes HOT 2
- digitalocean_spaces_bucket_cors_configuration: Does not allow to order CORS rules
- `digitalocean_project` created on failure, absent from TF state HOT 2
- App Platform image credentials set as required HOT 3
- Dedicated egress IP addresses support for App platform
- digitalocean_spaces_bucket NoSuchBucket while creating bucket HOT 3
- digitalocean_kubernetes_cluster. to support database operator HOT 2
- Consider adding GPG key to OpenTofu registry for the digitalocean provider HOT 2
- Support for database fork
- digitalocean_firewall blocks all ports
- digitalocean_ssh_key race condition (roduced an unexpected new value: Root object was present, but now absent) HOT 1
- digitalocean_database_cluster password is always empty HOT 5
- functions: feature: add resource, and data source for functions and namespaces
- Add OpenSearch Documentation
- digitalocean_app panic HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-digitalocean.