From b1cc4c5e699b0b925d7eac12caf823ccc45e2fd0 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 17 Sep 2024 18:52:46 +0200 Subject: [PATCH] Fixing tflint --- humanitec-resource-defs/mongodb/basic/README.md | 1 - .../mongodb/basic/terraform.tfvars.example | 3 --- humanitec-resource-defs/mongodb/basic/variables.tf | 11 ----------- 3 files changed, 15 deletions(-) diff --git a/humanitec-resource-defs/mongodb/basic/README.md b/humanitec-resource-defs/mongodb/basic/README.md index 33cbbff..0e6fd96 100644 --- a/humanitec-resource-defs/mongodb/basic/README.md +++ b/humanitec-resource-defs/mongodb/basic/README.md @@ -23,7 +23,6 @@ | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | prefix | Prefix for all resources | `string` | n/a | yes | -| name | Name of the deployment | `string` | `"mongo-{{ \"${context.res.id}\" | replace \".\" \"-\" | substr 0 41 }}\n"` | no | ## Outputs diff --git a/humanitec-resource-defs/mongodb/basic/terraform.tfvars.example b/humanitec-resource-defs/mongodb/basic/terraform.tfvars.example index ecb9929..fd5b238 100644 --- a/humanitec-resource-defs/mongodb/basic/terraform.tfvars.example +++ b/humanitec-resource-defs/mongodb/basic/terraform.tfvars.example @@ -1,6 +1,3 @@ -# Name of the deployment -name = "mongo-{{ \"${context.res.id}\" | replace \".\" \"-\" | substr 0 41 }}\n" - # Prefix for all resources prefix = "" \ No newline at end of file diff --git a/humanitec-resource-defs/mongodb/basic/variables.tf b/humanitec-resource-defs/mongodb/basic/variables.tf index 5e758cf..aa96b29 100644 --- a/humanitec-resource-defs/mongodb/basic/variables.tf +++ b/humanitec-resource-defs/mongodb/basic/variables.tf @@ -2,14 +2,3 @@ variable "prefix" { description = "Prefix for all resources" type = string } - -variable "name" { - description = "Name of the deployment" - type = string - - # Deployment names shouldn't be > 47 https://pauldally.medium.com/why-you-try-to-keep-your-deployment-names-to-47-characters-or-less-1f93a848d34c - # 47 - 6 (prefix) = 41 - default = <