We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b87ec commit 6416281Copy full SHA for 6416281
main.tf
@@ -32,7 +32,7 @@ data "aws_iam_policy_document" "role_rds" {
32
33
statement {
34
effect = "Allow"
35
- principals = {
+ principals {
36
type = "Service"
37
identifiers = [ "rds.amazonaws.com" ]
38
}
@@ -59,10 +59,10 @@ resource "aws_iam_policy" "main" {
59
path = "/"
60
policy = data.aws_iam_policy_document.main.0.json
61
62
-resource "aws_iam_role_policy_attachment" "test-attach" {
+resource "aws_iam_role_policy_attachment" "role_rds" {
63
count = var.create ? 1 : 0
64
65
- role = aws_iam_role.role_rd.0.name
+ role = aws_iam_role.role_rds.0.name
66
policy_arn = aws_iam_policy.main.0.arn
67
68
0 commit comments