diff --git a/plaap/plaap.tf b/plaap/plaap.tf new file mode 100644 index 0000000..9112e31 --- /dev/null +++ b/plaap/plaap.tf @@ -0,0 +1,23 @@ +module "datadog-users" { + source = "git::git@github.com:webuildyourcloud/terraform-datadog-users.git" + + users = [ + { + name = "user1" + handle = "user1@example.com" + }, + { + name = "admin1" + handle = "admin1@example.com" + admin = "true" + disabled = "false" + }, + { + name = "dis1" + handle = "dis1@example.com" + email = "disy1@example.com" + disabled = "true" + role = "ro" + }, + ] +} diff --git a/plaap/variables.tf b/plaap/variables.tf new file mode 100644 index 0000000..0b52acb --- /dev/null +++ b/plaap/variables.tf @@ -0,0 +1,43 @@ +variable "enabled" { + description = "Set to false to prevent the module from creating anything" + default = true +} + +variable "users" { + description = "List of Datadog user maps to manage" + type = list(string) +} + +variable "datadog_api_key" { + description = "The datadog API key" + type = string +} + +variable "datadog_app_key" { + description = "The datadog APP key" + type = string +} + +#variable "api_url" { +# description = "Which API to Connect to, we are using the EU one for GDPR compliance" +# type = string +# default = "https://api.datadoghq.eu" +#} +# +#variable "http_client_retry_enabled" { +# description = "Enables Request retries on HTTP status codes 429 and 5xx" +# type = bool +# default = true +#} +# +#variable "http_client_retry_timeout" { +# description = "Sets the number of HTTP request retry timeout period" +# type = string +# default = "" +#} +# +#variable "validate" { +# description = "Validates the provided APP and API keys during provider initialization" +# type = bool +# default = true +#} diff --git a/plaap/versions.tf b/plaap/versions.tf new file mode 100644 index 0000000..6b6318d --- /dev/null +++ b/plaap/versions.tf @@ -0,0 +1,3 @@ +terraform { + required_version = ">= 0.13" +} diff --git a/versions.tf b/versions.tf new file mode 100644 index 0000000..6b6318d --- /dev/null +++ b/versions.tf @@ -0,0 +1,3 @@ +terraform { + required_version = ">= 0.13" +}