Skip to content

Commit c0e2942

Browse files
allow mwaa execution role to assume housing reporting role (#2158)
1 parent bcd48aa commit c0e2942

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

terraform/core/47-mwaa.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,24 @@ resource "aws_iam_role_policy" "mwaa_role_policy" {
112112
})
113113
}
114114

115+
# To allow the MWAA execution role to assume the housing reporting role and export
116+
# MTFH tables to S3
117+
resource "aws_iam_role_policy" "mwaa_assume_role_policy" {
118+
name = "mwaa_assume_role_policy"
119+
role = aws_iam_role.mwaa_role.id
120+
121+
policy = jsonencode({
122+
Version = "2012-10-17",
123+
Statement = [
124+
{
125+
Effect = "Allow",
126+
Action = "sts:AssumeRole",
127+
Resource = "arn:aws:iam::282997303675:role/LBH_Reporting_Data_Sync_Role"
128+
}
129+
]
130+
})
131+
}
132+
115133

116134
# Security group for MWAA - self-referencing and allowing all traffic out
117135
# This is recommended in the doc, Matt recommended at current stage.

0 commit comments

Comments
 (0)