From b27d3f6b21dc910e63388a417577e137f4f9a388 Mon Sep 17 00:00:00 2001 From: Garland Kan Date: Thu, 3 Mar 2022 14:01:15 -0800 Subject: [PATCH] Datadog (#263) * Datadog * Adding outputs * Fixing output * Fixing var --- terraform-modules/datadog/api_key/main.tf | 3 +++ terraform-modules/datadog/api_key/outputs.tf | 5 +++++ terraform-modules/datadog/api_key/variables.tf | 5 +++++ 3 files changed, 13 insertions(+) create mode 100644 terraform-modules/datadog/api_key/main.tf create mode 100644 terraform-modules/datadog/api_key/outputs.tf create mode 100644 terraform-modules/datadog/api_key/variables.tf 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" +}