terraform-provider-oci icon indicating copy to clipboard operation
terraform-provider-oci copied to clipboard

oci_identity_user.email attibute seems to be required

Open vadzimk opened this issue 2 years ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

Terraform v1.2.2
provider registry.terraform.io/oracle/oci v4.79.0

Affected Resource(s)

Terraform Configuration Files

resource "oci_identity_user" "test_user" {
    #Required
    compartment_id = var.tenancy_ocid
    description = var.user_description
    name = var.user_name
}

Debug Output

https://gist.github.com/vadzimk/db6b2feb47713594e48896547936e75c

Panic Output

Expected Behavior

Terraform provider documentation statest that oci_identity_user email attribute is optional email - (Optional) (Updatable) The email you assign to the user. Has to be unique across the tenancy.

Actual Behavior

It seems like the email attribute is required Error":{"messageId":"error.identity.user.primaryEmailNotSpecified"}}

Steps to Reproduce

  1. terraform apply

vadzimk avatar Jul 02 '22 21:07 vadzimk