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

Added ability to change loggroup / function (resource) name for Lambdas #179

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

kyletbase2
Copy link

No description provided.

@@ -103,7 +110,11 @@ def render_lambda_functions(cfndsl, lambdas, lambda_metadata, distribution)

if lambda_config.has_key?('log_retention')
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.

None yet

4 participants