My Use case is to stream all system logs, application logs and aws cloudtrail logs to aws elasticsearch service.
work flow is
application logs --> cloudwatch log group -->default lambda function -->aws es
now i can able to stream 40+ log groups to es. after some point of time i am trying to stream more loggroup to es that time i am unable to stream. i am getting following error
"The final policy size is bigger than the limit of 20480 "

How to increase policy size
Please help me on this.
updated:
My IAM role inline policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": [
"arn:aws:logs:*:*:*"
]
},
{
"Effect": "Allow",
"Action": "es:ESHttpPost",
"Resource": "arn:aws:es:*:*:*"
}
]
}