Provides a Vultr User resource for creating, managing, and authenticating users with customizable access controls and API enablement.
Provides a Vultr User resource. This can be used to create, read, modify, and delete Users.
Create a new User without any ACLs
resource "vultr_user" "my_user" {
name = "my user"
email = "user@vultr.com"
password = "myP@ssw0rd"
api_enabled = true
}
Create a new User with all ACLs
resource "vultr_user" "my_user" {
name = "my user"
email = "user@vultr.com"
password = "myP@ssw0rd"
api_enabled = true
acl = [
"manage_users",
"subscriptions",
"provisioning",
"billing",
"support",
"abuse",
"dns",
"upgrade",
]
}
The following arguments are supported:
name - (Required) Name for this user.email - (Required) Email for this user.password - (Required) Password for this user.api_enabled - (Optional) Whether API is enabled for the user. Default behavior is set to enabled.acl - (Optional) The access control list for the user.The following attributes are exported:
id - ID associated with the user.name - Name for this user.email - Email for this user.api_enabled - Whether API is enabled for the user.Users can be imported using the User ID, e.g.
terraform import vultr_user.myuser 1345fef0-8ed3-4a66-bd8c-822a7b7bd05a