File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 100100 " s3:ListBucket"
101101 ],
102102 " Resource" : [
103- " arn:aws:s3:::${local. automq_data_bucket}" ,
104- " arn:aws:s3:::${local. automq_ops_bucket}"
103+ " arn:aws:s3:::${automq_data_bucket}" ,
104+ " arn:aws:s3:::${automq_ops_bucket}"
105105 ]
106106 } ,
107107 {
114114 " s3:DeleteObject"
115115 ],
116116 " Resource" : [
117- " arn:aws:s3:::${local. automq_data_bucket}/*" ,
118- " arn:aws:s3:::${local. automq_ops_bucket}/*"
117+ " arn:aws:s3:::${automq_data_bucket}/*" ,
118+ " arn:aws:s3:::${automq_ops_bucket}/*"
119119 ]
120120 }
121121 ]
Original file line number Diff line number Diff line change @@ -175,7 +175,10 @@ resource "aws_iam_policy" "automq_byoc_policy" {
175175 name = " automq-byoc-service-policy-${ var . automq_byoc_env_id } "
176176 description = " Custom policy for automq_byoc service"
177177
178- policy = file (" ${ path . module } /automq_byoc_role_policy.json" )
178+ policy = templatefile (" ${ path . module } /automq_byoc_role_policy.json.tpl" , {
179+ automq_data_bucket = local.automq_data_bucket
180+ automq_ops_bucket = local.automq_ops_bucket
181+ })
179182}
180183
181184resource "aws_iam_role_policy_attachment" "automq_byoc_role_attachment" {
You can’t perform that action at this time.
0 commit comments