Skip to content

Commit 6416281

Browse files
author
jslopes
committed
varias correcoes
1 parent 85b87ec commit 6416281

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ data "aws_iam_policy_document" "role_rds" {
3232

3333
statement {
3434
effect = "Allow"
35-
principals = {
35+
principals {
3636
type = "Service"
3737
identifiers = [ "rds.amazonaws.com" ]
3838
}
@@ -59,10 +59,10 @@ resource "aws_iam_policy" "main" {
5959
path = "/"
6060
policy = data.aws_iam_policy_document.main.0.json
6161
}
62-
resource "aws_iam_role_policy_attachment" "test-attach" {
62+
resource "aws_iam_role_policy_attachment" "role_rds" {
6363
count = var.create ? 1 : 0
6464

65-
role = aws_iam_role.role_rd.0.name
65+
role = aws_iam_role.role_rds.0.name
6666
policy_arn = aws_iam_policy.main.0.arn
6767
}
6868

0 commit comments

Comments
 (0)