No tienes acceso a esta clase

¡Continúa aprendiendo! Únete y comienza a potenciar tu carrera

Creando Endpoints

22/30
Recursos

Aportes 3

Preguntas 0

Ordenar por:

¿Quieres ver más aportes, preguntas y respuestas de la comunidad?

![](https://static.platzi.com/media/user_upload/image-241e0fb9-4489-43b0-a980-5a5d98bbe22e.jpg)Lo logreeee :D
```js resource "aws_iam_policy" "can_get_db_password" { name = "can-get-db-password" description = "Allows access to retrieve secrets from Secrets Manager" policy = jsonencode({ Version : "2012-10-17", Statement : [ { Action : [ "secretsmanager:GetSecretValue" ], Effect : "Allow", Resource : "arn:aws:secretsmanager:region:account-id:secret:secret-id" } ] }) } output "can_get_db_password_arn" { value = aws_iam_policy.can_get_db_password.arn } ```resource "aws\_iam\_policy" "can\_get\_db\_password" {  name        = "can-get-db-password"  description = "Allows access to retrieve secrets from Secrets Manager"   policy = jsonencode({    Version : "2012-10-17",    Statement : \[      {        Action : \[          "secretsmanager:GetSecretValue"        ],        Effect : "Allow",        Resource : "arn:aws:secretsmanager:us-east-2:975050363796:secret:rds!db-fcdd9c64-fe24-4e33-8416-2093b9d146ac-8nwQRQ"      }    ]  })} output "can\_get\_db\_password\_arn" {  value = aws\_iam\_policy.can\_get\_db\_password.arn}
resource "aws\_iam\_policy" "can\_get\_db\_password" {  name        = "can-get-db-password"  description = "Allows access to retrieve secrets from Secrets Manager"   policy = jsonencode({    Version : "2012-10-17",    Statement : \[      {        Action : \[          "secretsmanager:GetSecretValue"        ],        Effect : "Allow",        Resource : "your arn"      }    ]  })} output "can\_get\_db\_password\_arn" {  value = aws\_iam\_policy.can\_get\_db\_password.arn}