Skip to content

Commit

Permalink
fix: correção versão
Browse files Browse the repository at this point in the history
  • Loading branch information
otavio-code committed Sep 27, 2024
1 parent 9498805 commit cc6ad20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion secrets.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Criar o segredo no Secrets Manager
resource "aws_secretsmanager_secret" "db_credentials" {
name = "rds-postgres-credentials_v7"
name = "rds-postgres-credentials"
}

# Armazenar as credenciais e o endpoint no Secrets Manager
resource "aws_secretsmanager_secret_version" "db_credentials" {
depends_on = [aws_db_instance.postgres]
secret_id = aws_secretsmanager_secret.db_credentials.id
secret_string = jsonencode({
db_name = var.db_name
Expand Down

0 comments on commit cc6ad20

Please sign in to comment.