Skip to content

Commit d3031b3

Browse files
author
jslopes
committed
enabled depends rds instance
1 parent 87cc7fd commit d3031b3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

main.tf

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ resource "aws_db_proxy" "main" {
123123
}
124124

125125
tags = var.default_tags
126+
127+
depends_on = var.enabled_depends_on
126128
}
127129
resource "aws_db_proxy_default_target_group" "main" {
128130
count = var.create ? length(var.connection_pool_config) : 0

variables.tf

+4
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,8 @@ variable "db_cluster_identifier" {
5252
variable "secretsmanager" {
5353
type = any
5454
default = []
55+
}
56+
variable "enabled_depends_on" {
57+
type = list
58+
default = []
5559
}

0 commit comments

Comments
 (0)