Giter Club home page Giter Club logo

Comments (2)

squat avatar squat commented on August 15, 2024 1

@prawadhwani thanks for filing this. I am not able to recreate this problem. Looking at the Vultr API docs, it seems that IPv6 addresses depends on availability [0], so it may be specific to regions. I am able to create an instance and output it's IPv6 address with the following example configuration:

// Find the ID of the Frankfurt region.
data "vultr_region" "frankfurt" {
  filter {
    name   = "name"
    values = ["Frankfurt"]
  }
}

// Find the ID for a starter plan.
data "vultr_plan" "starter" {
  filter {
    name   = "price_per_month"
    values = ["5.00"]
  }

  filter {
    name   = "ram"
    values = ["1024"]
  }
}

// Find the OS ID for Ubuntu.
data "vultr_os" "ubuntu" {
  filter {
    name   = "name"
    values = ["Ubuntu 18.04 x64"]
  }
}

// Create a Vultr virtual machine.
resource "vultr_instance" "ubuntu" {
  name      = "ubuntu"
  region_id = "${data.vultr_region.frankfurt.id}"
  plan_id   = "${data.vultr_plan.starter.id}"
  os_id     = "${data.vultr_os.ubuntu.id}"
  ipv6      = true
}

// Output all of the virtual machine's IPv6 addresses to STDOUT when the infrastructure is ready.
output ip_addresses {
  value = "${vultr_instance.ubuntu.ipv6_address}"
}

This produces the following example output:

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

ip_addresses = [
    2001:19f0:6c01:162c:5400:01ff:fe92:7d2c
]

Can you post your configuration that replicates the issue?

[0] https://www.vultr.com/api/#server_create: enable_ipv6 string (optional) 'yes' or 'no'. If yes, an IPv6 subnet will be assigned to the machine (where available)

from terraform-provider-vultr.

squat avatar squat commented on August 15, 2024

@prawadhwani closing for now. Please re-open if you still have this issue and post your configuration to replicate the issue 👍

from terraform-provider-vultr.

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.