diff --git a/terraform-modules/datadog/api_key/main.tf b/terraform-modules/datadog/api_key/main.tf new file mode 100644 index 000000000..dd09bc899 --- /dev/null +++ b/terraform-modules/datadog/api_key/main.tf @@ -0,0 +1,3 @@ +resource "datadog_api_key" "this" { + name = var.name +} diff --git a/terraform-modules/datadog/api_key/outputs.tf b/terraform-modules/datadog/api_key/outputs.tf new file mode 100644 index 000000000..f00655013 --- /dev/null +++ b/terraform-modules/datadog/api_key/outputs.tf @@ -0,0 +1,5 @@ +output "api_key" { + value = datadog_api_key.this.key + sensitive = true + description = "The Datadog API key" +} diff --git a/terraform-modules/datadog/api_key/variables.tf b/terraform-modules/datadog/api_key/variables.tf new file mode 100644 index 000000000..265159c5a --- /dev/null +++ b/terraform-modules/datadog/api_key/variables.tf @@ -0,0 +1,5 @@ +variable "name" { + type = string + default = "datadog_api_key" + description = "The API key's name" +}