Skip to content

Commit 1419b98

Browse files
author
rohit-ng
committed
refactor: move data source to main
1 parent c133544 commit 1419b98

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

modules/iam/data.tf

Lines changed: 0 additions & 11 deletions
This file was deleted.

modules/iam/main.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
113
resource "aws_iam_role" "this" {
214
name_prefix = var.name_prefix
315
assume_role_policy = data.aws_iam_policy_document.assume_role_policy.json

0 commit comments

Comments
 (0)