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 c133544 commit 1419b98Copy full SHA for 1419b98
modules/iam/data.tf
modules/iam/main.tf
@@ -1,3 +1,15 @@
1
+data "aws_iam_policy_document" "assume_role_policy" {
2
+ statement {
3
+ actions = ["sts:AssumeRole"]
4
+ effect = "Allow"
5
+
6
+ principals {
7
+ type = var.principal_type
8
+ identifiers = var.principal_identifiers
9
+ }
10
11
+}
12
13
resource "aws_iam_role" "this" {
14
name_prefix = var.name_prefix
15
assume_role_policy = data.aws_iam_policy_document.assume_role_policy.json
0 commit comments