Skip to content

Commit f141883

Browse files
committed
feat: remove destructino delay
1 parent 102c3ec commit f141883

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ other optional variables (e.g., `name`, `tags`, etc.) provided by the
6262
|---------------------------|---------------------------------------------------------------------------|:------:|:-------:|:--------:|
6363
| auth_service_config | Configuration details for the authentication service. More details below. | object | `{}` | no |
6464
| urlrewrite_service_config | Configuration details for the URL rewrite service, More details below. | object | `{}` | no |
65-
| destruction_delay | Delay before destroying resources when they are deleted | string | `"20m"` | no |
6665
| aws_account_id | The AWS account ID that the module will be deployed in | string | `""` | no |
6766
| aws_region_name | The AWS region name where the module will be deployed | string | `""` | no |
6867

main.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ locals {
33
enabled = module.this.enabled
44
auth_service_enabled = local.enabled && var.auth_service_config.enabled
55
urlrewrite_service_enabled = local.enabled && var.urlrewrite_service_config.enabled
6-
destruction_delay_enabled = var.destruction_delay != null
76

87
aws_account_id = try(coalesce(var.aws_account_id, data.aws_caller_identity.current[0].account_id), "")
98
aws_region_name = try(coalesce(var.aws_region_name, data.aws_region.current[0].name), "")
@@ -85,16 +84,6 @@ data "aws_region" "current" {
8584
count = module.this.enabled && var.aws_region_name == "" ? 1 : 0
8685
}
8786

88-
resource "time_sleep" "destruction_delay" {
89-
for_each = local.destruction_delay_enabled ? aws_lambda_function.auth_service : {}
90-
91-
destroy_duration = var.destruction_delay
92-
93-
triggers = {
94-
arn = each.value.arn
95-
}
96-
}
97-
9887
# ====================================================== middleware-services ===
9988

10089
module "mw_service_label" {

variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ variable "urlrewrite_service_config" {
3030
default = {}
3131
}
3232

33-
variable "destruction_delay" {
34-
description = "Delay before destroying resources when they are deleted"
35-
type = string
36-
default = "20m"
37-
}
38-
3933
variable "aws_account_id" {
4034
description = "The AWS account ID that the module will be deployed in"
4135
type = string

0 commit comments

Comments
 (0)