Skip to content

Commit 174baa7

Browse files
authored
feat: Add timeout for opensearch domain
1 parent f37c096 commit 174baa7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ resource "aws_opensearch_domain" "this" {
224224
}
225225
}
226226

227+
timeouts {
228+
create = try(var.timeouts.create, null)
229+
delete = try(var.timeouts.delete, null)
230+
}
231+
227232
tags = local.tags
228233
}
229234

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ variable "vpc_options" {
139139
default = {}
140140
}
141141

142+
variable "timeouts" {
143+
description = "Create and delete timeout configurations for the domain"
144+
type = map(string)
145+
default = {}
146+
}
147+
142148
################################################################################
143149
# Package Association(s)
144150
################################################################################

0 commit comments

Comments
 (0)