-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathiam_roles.tf
34 lines (26 loc) · 1.03 KB
/
iam_roles.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
############################
# Billing Full Access Role #
############################
resource "aws_iam_role" "billing_full_access" {
name = "billing-full-access"
description = "Role for billing-full-access users to assume"
assume_role_policy = data.aws_iam_policy_document.assume_role_policy.json
tags = var.tags
}
resource "aws_iam_role_policy_attachment" "billing_full_access" {
role = aws_iam_role.billing_full_access.name
policy_arn = aws_iam_policy.billing_full_access.arn
}
############################
# Billing View Access Role #
############################
resource "aws_iam_role" "billing_view_access" {
name = "billing-view-access"
description = "Role for billing-view-access users to assume"
assume_role_policy = data.aws_iam_policy_document.assume_role_policy.json
tags = var.tags
}
resource "aws_iam_role_policy_attachment" "billing_view_access" {
role = aws_iam_role.billing_view_access.name
policy_arn = aws_iam_policy.billing_view_access.arn
}