Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kb_log_group_retention_in_days producing an error. #53

Open
eduamota opened this issue Dec 30, 2024 · 0 comments
Open

kb_log_group_retention_in_days producing an error. #53

eduamota opened this issue Dec 30, 2024 · 0 comments

Comments

@eduamota
Copy link

Running into this error:

Error: Invalid validation error message

│ on .terraform/modules/bedrock/variables.tf line 509, in variable "kb_log_group_retention_in_days":
│ 509: error_message = "The provided retention period is not a valid CloudWatch logs retention period"

│ The validation error message must be at least one full sentence starting with an uppercase letter and ending with a period or question mark.

Looking into branch with tag 0.0.5 (https://github.com/aws-ia/terraform-aws-bedrock/blob/v0.0.5/variables.tf) I see the variable:

variable "kb_log_group_retention_in_days" {
  description = "The retention period of the knowledge base log group."
  type        = number
  default     = 0
  validation {
    condition     = contains([1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653, 0], var.kb_log_group_retention_in_days)
    error_message = "The provided retention period is not a valid CloudWatch logs retention period"
  }
}

The error_message (line 509) text requires a '.' at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant