Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform 0.6.6: ssh fingerprint does not work on DigitalOcean droplet resource. #3628

Closed
glidenote opened this issue Oct 25, 2015 · 7 comments

Comments

@glidenote
Copy link

when I use v0.6.6, ssh fingerprint does not work on DigitalOcean droplet resource.
v0.6.4 is no problem.

environment variable

export DIGITALOCEAN_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export TF_VAR_ssh_fingerprint=ab:ad:29:af:1d:4b:76:65:ea:25:9a:d7:fb:9a:26:e0

tf file

variable "ssh_fingerprint" {}

resource "digitalocean_droplet" "webapp" {
    image    = "centos-7-0-x64"
    name     = "webapp"
    region   = "sgp1"
    size     = "512mb"
    ssh_keys = [ "${var.ssh_fingerprint}" ]
}

error log.

terraform apply
digitalocean_droplet.webapp: Creating...
  image:                "" => "centos-7-0-x64"
  ipv4_address:         "" => "<computed>"
  ipv4_address_private: "" => "<computed>"
  ipv6_address:         "" => "<computed>"
  ipv6_address_private: "" => "<computed>"
  locked:               "" => "<computed>"
  name:                 "" => "webapp"
  region:               "" => "sgp1"
  size:                 "" => "512mb"
  ssh_keys.#:           "" => "1"
  ssh_keys.0:           "" => "ab:ad:29:af:1d:4b:76:65:ea:25:9a:d7:fb:9a:26:e0"
  status:               "" => "<computed>"
Error applying plan:

1 error(s) occurred:

* digitalocean_droplet.webapp: strconv.ParseInt: parsing "ab:ad:29:af:1d:4b:76:65:ea:25:9a:d7:fb:9a:26:e0": invalid syntax

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

DigitalOcean droplet resource doc https://terraform.io/docs/providers/do/r/droplet.html

ssh_keys - (Optional) A list of SSH IDs or fingerprints to enable in the format [12345, 123456].

@apparentlymart
Copy link
Contributor

Since v0.6.5 Terraform is using a new client library for DigitalOcean, from #3333.

@aybabtme, could this be a regression related to that client library switch?

@aybabtme
Copy link
Contributor

I'll have a look

aybabtme added a commit to aybabtme/terraform that referenced this issue Oct 25, 2015
aybabtme added a commit to aybabtme/terraform that referenced this issue Oct 25, 2015
aybabtme added a commit to aybabtme/terraform that referenced this issue Oct 25, 2015
@aybabtme
Copy link
Contributor

@apparentlymart I have a fix in #3633

@glidenote
Copy link
Author

👍
Thank you for quick response 😄

phinze added a commit that referenced this issue Oct 29, 2015
…e-3628

provider/digitalocean: fix issue #3628 by accepting SSH fingerprints
@stack72
Copy link
Contributor

stack72 commented Nov 6, 2015

@glidenote @apparentlymart can this issue be closed off now that #3633 was merged?

@glidenote
Copy link
Author

💯

@ghost
Copy link

ghost commented Apr 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants