Giter VIP home page Giter VIP logo

Comments (5)

andrewsomething avatar andrewsomething commented on July 26, 2024 1

I'm happy to say that yesterday, we release version 1.0.0 of the DigitalOcean Terraform provider. It should include a fix for this issue.

You can find the full changelog here: https://github.com/terraform-providers/terraform-provider-digitalocean/blob/master/CHANGELOG.md#100-september-27-2018

In order to upgrade an existing project to the latest version, run:

terraform init -upgrade

If you believe that this issue is being closed by mistake or the problem has not been resolved, please let me know or feel free to open a new issue with additional details.

Thanks for your patience!

from terraform-provider-digitalocean.

hashibot avatar hashibot commented on July 26, 2024

This comment was originally opened by @nathansamson as hashicorp/terraform#3058 (comment). It was migrated here as part of the provider split. The original comment is below.


Names are not required to be unique which makes this a challenging problem

from terraform-provider-digitalocean.

hashibot avatar hashibot commented on July 26, 2024

This comment was originally opened by @cabbiepete as hashicorp/terraform#3058 (comment). It was migrated here as part of the provider split. The original comment is below.


Using the approach below

Droplet config

ssh_keys = ["${digitalocean_ssh_key.april.fingerprint}",
              "${digitalocean_ssh_key.pete.fingerprint}",
              "${digitalocean_ssh_key.garfield.fingerprint}"]

Referencing 3 ssh key resource definitions

works great on 0.7.0 maybe this ticket is solved but just wasn't closed?

from terraform-provider-digitalocean.

abitrolly avatar abitrolly commented on July 26, 2024

Maybe it should be possible to reference people by${digitalocean_ssh_key.april.name} ?

from terraform-provider-digitalocean.

andrewsomething avatar andrewsomething commented on July 26, 2024

Quick update here: We've landed a new digitalocean_ssh_key data source. This allows for looking up an existing SSH key by name which you can then use with a Droplet resource. This requires that you've used unique names for your keys.

For example:

data "digitalocean_ssh_key" "example" {
  name = "example"
}

resource "digitalocean_droplet" "web" {
  image    = "ubuntu-18-04-x64"
  name     = "web-1"
  region   = "nyc1"
  size     = "512mb"
  ssh_keys = ["${data.digitalocean_ssh_key.example.fingerprint}"]
}

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.