File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments