Giter VIP home page Giter VIP logo

Comments (15)

slapula avatar slapula commented on July 26, 2024 12

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.

dmikalova avatar dmikalova commented on July 26, 2024 3

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.

andrewsomething avatar andrewsomething commented on July 26, 2024 3

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.

 avatar commented on July 26, 2024

Hi, actually DigitalOcean doesn't provide any public api for spaces 😞.
Ref: digitalocean/godo#150

from terraform-provider-digitalocean.

hmazter avatar hmazter commented on July 26, 2024

Now it looks like there is an API for spaces.
https://developers.digitalocean.com/documentation/spaces/

from terraform-provider-digitalocean.

mikebywater avatar mikebywater commented on July 26, 2024

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.

lfarnell avatar lfarnell commented on July 26, 2024

@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.

aknuds1 avatar aknuds1 commented on July 26, 2024

Yes please!

from terraform-provider-digitalocean.

abaez avatar abaez commented on July 26, 2024

If nobody is currently working on this, I would like to take a swing. Really want spaces usage from tf.

from terraform-provider-digitalocean.

nreisbeck avatar nreisbeck commented on July 26, 2024

@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.

abaez avatar abaez commented on July 26, 2024

from terraform-provider-digitalocean.

heartwilltell avatar heartwilltell commented on July 26, 2024

Hey guys! Any updates about spaces support?

from terraform-provider-digitalocean.

lpil avatar lpil commented on July 26, 2024

Can this be closed? Or is there something more to do?

from terraform-provider-digitalocean.

eddiezane avatar eddiezane commented on July 26, 2024

@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.

andrewsomething avatar andrewsomething commented on July 26, 2024

@eddiezane We'll likely be cutting a release next week. There is some work in-flight.

from terraform-provider-digitalocean.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.