Skip to content

Commit

Permalink
fix:update example file
Browse files Browse the repository at this point in the history
  • Loading branch information
lplazas committed Jan 25, 2024
1 parent 31d395a commit 52f4e71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
11 changes: 5 additions & 6 deletions examples/opensearch-vpc-saml/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ module "opensearch" {
encrypt_at_rest = {
enabled = true
}
off_peak_window_options = {
enabled = true
window_start_time = {
hours = 08
minutes = 60
}
off_peak_window_enabled = true
off_peak_window_start_time = {
hours = 08
minutes = 60
}

}
8 changes: 0 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,6 @@ resource "aws_opensearch_domain" "opensearch" {
}
}
}
# off_peak_window = try(var.off_peak_window_options.off_peak_window.window_start_time.hours,
# try(var.off_peak_window_options.off_peak_window.window_start_time.minutes, {
# window_start_time = {
# hours = var.off_peak_window_options.off_peak_window.window_start_time.hours
# minutes = var.off_peak_window_options.off_peak_window.window_start_time.minutes
# }
# }, null),
# null)
}

access_policies = var.access_policy == null && var.default_policy_for_fine_grained_access_control ? (<<CONFIG
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ variable "off_peak_window_enabled" {
}

variable "off_peak_window_start_time" {
type = object({
hours = number
type = object({
hours = number
minutes = number
})

Expand Down

0 comments on commit 52f4e71

Please sign in to comment.