Skip to content

Commit

Permalink
Fixing tflint
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit committed Sep 17, 2024
1 parent 975fa95 commit b1cc4c5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion humanitec-resource-defs/mongodb/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

# Name of the deployment
name = "mongo-{{ \"${context.res.id}\" | replace \".\" \"-\" | substr 0 41 }}\n"

# Prefix for all resources
prefix = ""
11 changes: 0 additions & 11 deletions humanitec-resource-defs/mongodb/basic/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <<EOT
mongo-{{ "$${context.res.id}" | replace "." "-" | substr 0 41 }}
EOT
}

0 comments on commit b1cc4c5

Please sign in to comment.