Skip to content

Conversation

@kyletbase2
Copy link

No description provided.

Logs_LogGroup("#{name}LogGroup") do
LogGroupName "/aws/lambda/#{name}"
if lambda_config['loggroup_name'].nil?
LogGroupName "/aws/lambda/#{name}"
Copy link
Member

@Guslington Guslington Oct 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

providing the ability to set the log group name could lead to confusion as the log group name has to match the function name.

i think this should change to something like

LogGroupName FnSub("/aws/lambda/${#{function_name}}")

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the below commit :)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When it will be implemented?

@aaronwalker
Copy link
Member

@Guslington whats the current state of the PR. I'd like to see it merged as it solves a problem deploying a custom log group for the same stack deployed multiple times in the same account

@Guslington
Copy link
Member

@aaronwalker I don't think the PR quite solves the issue and needs some work as there are 3 different ways to name a lambda which creates situations where using a combinations of these can cause the log group to have a different name to the lambda function.

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

Successfully merging this pull request may close these issues.

4 participants