vultr / terraform-provider-vultr

Terraform Vultr provider
https://www.terraform.io/docs/providers/vultr/
Mozilla Public License 2.0
192 stars 65 forks source link

[Feature] - Specify Access Control subnets that are allowed to use a Vultr user's API key #406

Closed heatzync closed 11 months ago

heatzync commented 1 year ago

Is your feature request related to a problem? Please describe. It should be possible to specify Access Control subnets as part of the vultr_user resource.

Describe the solution you'd like

resource "vultr_instance" "blah" {
   ...
}

resource "random_password" "api_user" {
  length      = 64
}

resource "vultr_user" "api_user" {
  name        = "Vultr API User"
  email       = "vultr.api.user@somewhere.com"
  password    = random_password.api_user.result
  api_enabled = true
  acl         = [
    "firewall",
    # etc.
  ]
  access_control = [
    var.manually_defined_subnet,
    "${vultr_instance.blah.main_ip}/32"
  ]
}

Describe alternatives you've considered After the user is created then we manually log into https://my.vultr.com to edit the user and add the subnets.

Additional context Nothing I can think of right now

optik-aper commented 1 year ago

Thanks for the request! Unfortunately that functionality doesn't exist in the API so we can't add it here. If it's something you'd like to see you can open a ticket/feature request to alert the platform team to your need.