Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

policy size limits - max 44 log groups you can add #731

Open
ioancatana opened this issue Jun 27, 2024 · 0 comments
Open

policy size limits - max 44 log groups you can add #731

ioancatana opened this issue Jun 27, 2024 · 0 comments

Comments

@ioancatana
Copy link

I have tried to split log groups into 2 lists:

ElasticServerlessForwarderCloudWatchLogsEvents = join(",", formatlist("%s:*", slice(local.log_groups_list, 0, local.log_groups_half_index)))
ElasticServerlessForwarderCloudWatchLogsEvents2 = join(",", formatlist("%s:*", slice(local.log_groups_list, local.log_groups_half_index, local.log_groups_count)))

But is still creating only 1 policy:

This should create a second policy and attach it to the role, because we can add a maximum of 44 log groups to one serverless deployment.

The previous issue should have fixed this: #560 but it's not.

For confirmed bugs, please report:

  • Version: -> 1.12
  • Steps to Reproduce: add more than 44 log groups in

error from CloudFormation: Resource handler returned message: "The final policy size (20906) is bigger than the limit (20480). (Service: Lambda, Status Code: 400, Request ID:****-b3c8-4363-adc0-****)" (RequestToken: ****-b3c8-4363-adc0-****, HandlerErrorCode: InvalidRequest)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant