Variable without description
이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다.Id: 2a153952-2544-4687-bcc9-cc8fea814a9b
Cloud Provider: Common
Platform: Terraform
Severity: Info
Category: Best Practices
Learn More
Description
All variables must include a description attribute that is defined, not null, and not empty or whitespace-only.
This rule reports:
MissingAttribute when the description key is undefined or null.IncorrectValue when the description is present but empty after trimming.
Each result includes documentId, resourceType, resourceName, and searchKey to help locate the offending variable.
Compliant Code Examples
variable "cluster_name" {
default = "example"
description = "cluster name"
type = string
}
resource "aws_eks_cluster" "negative1" {
depends_on = [aws_cloudwatch_log_group.example]
enabled_cluster_log_types = ["api", "audit", "authenticator", "controllerManager", "scheduler"]
name = var.cluster_name
}
Non-Compliant Code Examples
variable "cluster_name" {
default = "example"
type = string
description = " "
}
resource "aws_eks_cluster" "positive1" {
depends_on = [aws_cloudwatch_log_group.example]
name = var.cluster_name
}
variable "cluster_name" {
default = "example"
type = string
description = ""
}
resource "aws_eks_cluster" "positive1" {
depends_on = [aws_cloudwatch_log_group.example]
name = var.cluster_name
}
variable "cluster_name" {
default = "example"
type = string
}
resource "aws_eks_cluster" "positive1" {
depends_on = [aws_cloudwatch_log_group.example]
name = var.cluster_name
}