diff --git a/README.md b/README.md index 4e9b674..a81f1b8 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ No modules. |------|-------------|------|---------|:--------:| | [base\_name](#input\_base\_name) | Names for the created resources will be ${base\_name}\_{user,group} | `string` | `"lacework_security_integration"` | no | | [create](#input\_create) | Set to false to prevent module from creating any resources | `bool` | `true` | no | -| [email](#input\_email) | Optional email associated with the created user | `string` | `"lacework@lacework.net"` | no | +| [email](#input\_email) | Email associated with the created user | `string` | n/a | yes | | [freeform\_tags](#input\_freeform\_tags) | freeform tags for the resources created for Lacework integration | `map(any)` | `{}` | no | | [group\_name](#input\_group\_name) | Name of the identity group for the Lacework user (overrides base\_name) | `string` | `""` | no | | [tenancy\_id](#input\_tenancy\_id) | OCID of the OCI tenancy to be integrated with Lacework | `string` | n/a | yes | diff --git a/examples/custom-iam-user/main.tf b/examples/custom-iam-user/main.tf index 46239d3..bf854fc 100644 --- a/examples/custom-iam-user/main.tf +++ b/examples/custom-iam-user/main.tf @@ -1,6 +1,7 @@ module "lacework_iam_user" { source = "../.." tenancy_id = var.tenancy_ocid + email = "example@example.com" base_name = "lacework_test" } diff --git a/examples/default-iam-user/main.tf b/examples/default-iam-user/main.tf index fead9fe..5b840ec 100644 --- a/examples/default-iam-user/main.tf +++ b/examples/default-iam-user/main.tf @@ -1,6 +1,7 @@ module "lacework_iam_user" { source = "../.." tenancy_id = var.tenancy_ocid + email = "example@example.com" } variable "tenancy_ocid" { diff --git a/examples/skip-creation-iam-user/main.tf b/examples/skip-creation-iam-user/main.tf index 2aca0fa..9b36ab7 100644 --- a/examples/skip-creation-iam-user/main.tf +++ b/examples/skip-creation-iam-user/main.tf @@ -1,6 +1,7 @@ module "lacework_iam_user" { source = "../.." tenancy_id = var.tenancy_ocid + email = "example@example.com" create = false } diff --git a/variables.tf b/variables.tf index 53a7d71..984b6d2 100644 --- a/variables.tf +++ b/variables.tf @@ -5,6 +5,11 @@ variable "tenancy_id" { description = "OCID of the OCI tenancy to be integrated with Lacework" } +variable "email" { + type = string + description = "Email associated with the created user" +} + # Optional variable "create" { @@ -19,12 +24,6 @@ variable "freeform_tags" { description = "freeform tags for the resources created for Lacework integration" } -variable "email" { - type = string - default = "lacework@lacework.net" - description = "Optional email associated with the created user" -} - variable "base_name" { type = string default = "lacework_security_integration"