diff --git a/README.md b/README.md index eafcdf6..b9fe01f 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,7 @@ module "eks" { | [aws](#requirement\_aws) | >= 5.0 | | [helm](#requirement\_helm) | >= 2.9 | | [kubernetes](#requirement\_kubernetes) | >= 2.20 | +| [random](#requirement\_random) | >= 3.0 | | [time](#requirement\_time) | >= 0.9 | ## Providers @@ -80,6 +81,7 @@ module "eks" { | [aws](#provider\_aws) | >= 5.0 | | [helm](#provider\_helm) | >= 2.9 | | [kubernetes](#provider\_kubernetes) | >= 2.20 | +| [random](#provider\_random) | >= 3.0 | | [time](#provider\_time) | >= 0.9 | ## Modules @@ -140,6 +142,7 @@ module "eks" { | [kubernetes_config_map_v1.aws_logging](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/config_map_v1) | resource | | [kubernetes_config_map_v1_data.aws_for_fluentbit_containerinsights](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/config_map_v1_data) | resource | | [kubernetes_namespace_v1.aws_observability](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace_v1) | resource | +| [random_bytes.this](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/bytes) | resource | | [time_sleep.this](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource | | [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | | [aws_eks_addon_version.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_addon_version) | data source | diff --git a/main.tf b/main.tf index 0c52457..3ff0185 100644 --- a/main.tf +++ b/main.tf @@ -3819,10 +3819,14 @@ module "bottlerocket_update_operator" { # Usage Telemetry ################################################################################ +resource "random_bytes" "this" { + length = 2 +} + resource "aws_cloudformation_stack" "usage_telemetry" { count = var.observability_tag != null ? 1 : 0 - name = var.cluster_name + name = "${var.cluster_name}-${random_bytes.this.hex}" on_failure = "DO_NOTHING" template_body = jsonencode({ diff --git a/versions.tf b/versions.tf index 301db9a..7064da0 100644 --- a/versions.tf +++ b/versions.tf @@ -14,6 +14,10 @@ terraform { source = "hashicorp/kubernetes" version = ">= 2.20" } + random = { + source = "hashicorp/random" + version = ">= 3.0" + } time = { source = "hashicorp/time" version = ">= 0.9"