GithubHelp home page GithubHelp logo

Comments (2)

Oogy avatar Oogy commented on May 28, 2024

@sprusr7 This is due to the release of the v2 Vultr Terraform Provider. Will be pushing a new release for the module shortly pinning the provider to an older release(v1.5.0). If you wish to proceed immediately please add the following to your terraform plan:

terraform {
  required_providers {
    vultr = {
      source = "vultr/vultr"
      version = "1.5.0"
    }
  }
}

then re-run terraform init and terraform validate. Please note, this module will be updated to v2 at some point.

from terraform-vultr-condor.

sprusr7 avatar sprusr7 commented on May 28, 2024

I tried to re-run everything onto a new server and getting only 1 error this time.

[root@staging ~]# terraform validate

Error: Invalid function argument

  on .terraform/modules/cluster/vultr-ssh.tf line 3, in resource "vultr_ssh_key" "provisioner":
   3:   ssh_key = trimspace(file("~/.ssh/id_rsa.pub"))

Invalid value for "path" parameter: no file exists at /root/.ssh/id_rsa.pub;
this function works only with files that are distributed as part of the
configuration source code, so if this file will be created by a resource in
this configuration you must instead obtain this result from an attribute of
that resource.

Following two files do not exist on my Centos server

~/.ssh/id_rsa.pub
~/.ssh/id_rsa

If I create empty files on the above paths then I get following errors when I run terraform apply.



Error: Error creating SSH key: Unable to create SSH Key: Invalid SSH key.  Keys should be in authorized_keys format

  on .terraform/modules/cluster/vultr-ssh.tf line 1, in resource "vultr_ssh_key" "provisioner":
   1: resource "vultr_ssh_key" "provisioner" {



Error: Error creating network: Not currently enabled on your account, enable on https://my.vultr.com/network/

  on .terraform/modules/cluster/vultr-vpc.tf line 1, in resource "vultr_network" "cluster_network":
   1: resource "vultr_network" "cluster_network" {


from terraform-vultr-condor.

Related Issues (12)

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.