diff --git a/availabilty_zones.tf b/common/availabilty_zones.tf similarity index 100% rename from availabilty_zones.tf rename to common/availabilty_zones.tf diff --git a/common/resources.tf b/common/resources.tf index 941e4d7..fb1c0c4 100644 --- a/common/resources.tf +++ b/common/resources.tf @@ -31,9 +31,9 @@ resource "aws_servicecatalog_provisioned_product" "this" { tags = local.tags timeouts { - create = var.timeout_create - update = var.timeout_update - delete = var.timeout_delete + create = var.timeout + update = var.timeout + delete = var.timeout } depends_on = [ diff --git a/common/variables.product.tf b/common/variables.product.tf index a4a1317..b6dae08 100644 --- a/common/variables.product.tf +++ b/common/variables.product.tf @@ -75,22 +75,10 @@ variable "retrieve_stack_outputs" { default = true } -variable "timeout_create" { - description = "Timeout for provisioned product creation" +variable "timeout" { + description = "Timeout for provisioned product operations (create/update/delete)" type = string - default = "60m" -} - -variable "timeout_update" { - description = "Timeout for provisioned product updates" - type = string - default = "60m" -} - -variable "timeout_delete" { - description = "Timeout for provisioned product deletion" - type = string - default = "60m" + default = "15m" } variable "vpc_name" { diff --git a/ec2/availabilty_zones.tf b/ec2/availabilty_zones.tf new file mode 120000 index 0000000..00a240c --- /dev/null +++ b/ec2/availabilty_zones.tf @@ -0,0 +1 @@ +../common/availabilty_zones.tf \ No newline at end of file diff --git a/versions.tf b/versions.tf index 4ba10ce..7503060 100644 --- a/versions.tf +++ b/versions.tf @@ -2,7 +2,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 3.66.0" + version = ">= 5.0" } } # required_version = ">= 0.13"