Skip to content

Commit e2f9870

Browse files
committed
CI correction
1 parent e2b2e66 commit e2f9870

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

infra/modules/rds/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ resource "aws_secretsmanager_secret_version" "db_password" {
4444
port = aws_db_instance.main.port
4545
dbname = var.db_name
4646
})
47+
# Ensure the secret value update happens after the RDS instance is created
48+
depends_on = [aws_db_instance.main]
4749
}
4850

4951
# DB Subnet Group
@@ -102,7 +104,6 @@ resource "aws_db_instance" "main" {
102104
}
103105

104106
depends_on = [
105-
aws_secretsmanager_secret_version.db_password,
106107
]
107108
}
108109

0 commit comments

Comments
 (0)