Skip to content

Commit a57cea8

Browse files
author
jslopes
committed
varias correcoes
1 parent 7d2a5a8 commit a57cea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ resource "aws_db_proxy" "main" {
9696
engine_family = var.engine_family
9797
idle_client_timeout = var.idle_client_timeout
9898
require_tls = var.require_tls
99-
role_arn = aws_iam_role.example.arn
99+
role_arn = aws_iam_role.role_rds.0.arn
100100
vpc_security_group_ids = var.vpc_security_group_ids
101101
vpc_subnet_ids = var.vpc_subnet_ids
102102

@@ -106,7 +106,7 @@ resource "aws_db_proxy" "main" {
106106
auth_scheme = lookup(auth.value, "auth_scheme", "SECRETS")
107107
description = lookup(auth.value, "description", null)
108108
iam_auth = lookup(auth.value, "iam_auth", "DISABLED")
109-
secret_arn = lookup(auth.value, "secret_arn", null)
109+
secret_arn = aws_secretsmanager_secret.main.0.arn
110110
username = lookup(auth.value, "username", null)
111111
}
112112
}

0 commit comments

Comments
 (0)