diff --git a/README.md b/README.md index cf65b7b..59b5599 100755 --- a/README.md +++ b/README.md @@ -62,7 +62,6 @@ other optional variables (e.g., `name`, `tags`, etc.) provided by the |---------------------------|---------------------------------------------------------------------------|:------:|:-------:|:--------:| | auth_service_config | Configuration details for the authentication service. More details below. | object | `{}` | no | | urlrewrite_service_config | Configuration details for the URL rewrite service, More details below. | object | `{}` | no | -| destruction_delay | Delay before destroying resources when they are deleted | string | `"20m"` | no | | aws_account_id | The AWS account ID that the module will be deployed in | string | `""` | no | | aws_region_name | The AWS region name where the module will be deployed | string | `""` | no | diff --git a/main.tf b/main.tf index 2f84f64..90aa0d2 100755 --- a/main.tf +++ b/main.tf @@ -3,7 +3,6 @@ locals { enabled = module.this.enabled auth_service_enabled = local.enabled && var.auth_service_config.enabled urlrewrite_service_enabled = local.enabled && var.urlrewrite_service_config.enabled - destruction_delay_enabled = var.destruction_delay != null aws_account_id = try(coalesce(var.aws_account_id, data.aws_caller_identity.current[0].account_id), "") aws_region_name = try(coalesce(var.aws_region_name, data.aws_region.current[0].name), "") @@ -85,16 +84,6 @@ data "aws_region" "current" { count = module.this.enabled && var.aws_region_name == "" ? 1 : 0 } -resource "time_sleep" "destruction_delay" { - for_each = local.destruction_delay_enabled ? aws_lambda_function.auth_service : {} - - destroy_duration = var.destruction_delay - - triggers = { - arn = each.value.arn - } -} - # ====================================================== middleware-services === module "mw_service_label" { diff --git a/variables.tf b/variables.tf index 5c12d64..9d4734f 100755 --- a/variables.tf +++ b/variables.tf @@ -30,12 +30,6 @@ variable "urlrewrite_service_config" { default = {} } -variable "destruction_delay" { - description = "Delay before destroying resources when they are deleted" - type = string - default = "20m" -} - variable "aws_account_id" { description = "The AWS account ID that the module will be deployed in" type = string