Open bandicoot00 opened 6 months ago
@bandicoot00 could you try the v2 resource ? https://registry.terraform.io/providers/Commvault/commvault/latest/docs/resources/user_v2
Hi @cvltmaheshp! First of all thank you so much for your answer, Im using terraform for about 1 month and im noob hahaha. Yes, i've tried to create the user with the commvault_userv2 module but when i launch my terraform apply i get this error: commvault_user_v2.eromero: Creating...
╷
│ Error: operation [CreateUser] failed, Error Post "/V4/user": unsupported protocol scheme ""
│
│ with commvault_user_v2.eromero,
│ on commvault_user.tf line 1, in resource "commvault_user_v2" "eromero":
│ 1: resource "commvault_user_v2" "eromero" {
│
╵
Pls go through this - https://registry.terraform.io/providers/Commvault/commvault/latest/docs
You have to first initialize the provider.
provider "commvault" { web_service_url = "URL of the commserver webservice/webconsole api endpoint" user_name = "username that is used to call APIs" password = "password in base 64 encoded format" ignore_cert = "true/false to ignore certificate warnings for https endpoints" }
Hi @cvltmaheshp and thanks again for ur answer. I've tested the last code you provide me and have good and bad news I launch my terraform apply and all look good but it throw me a "access denied" error.
commvault_user.eromero: Creating...
╷
│ Error: User creation failed with Error: Access denied
│
│ with commvault_user.eromero,
│ on commvault_user.tf line 8, in resource "commvault_user" "eromero":
│ 8: resource "commvault_user" "eromero"{
│
╵
@bandicoot00 Besides from ensuring that the user is setup in Commvault with appropriate permissions, make sure that you base64 encoded the password to the provider.
Sorry @jeliasson, i dont usually sign in Git hub wih this account and didnt see your answer. I finally fixed it with my workmate. Thank you guys for your answer
@bandicoot00 No worries. For future references, what was the solution?
Hi guys! Im trying to create an user in my commvault master server using code with terraform. All looks good cause command terraform plan doesnt give me any error and show me the output about new user will be created with my credentials. When i run terraform apply i get this error:
``Error: The terraform-provider-commvault_v1.2.10 plugin crashed!
Put the full output i got:
Terraform script: