-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Add a a parameter to keep/drop the stream label from cloudwatch. #4494
Conversation
Signed-off-by: Callum Styan <[email protected]>
if keep != "" && strings.EqualFold(keep, "true") { | ||
keepStream = true | ||
} | ||
fmt.Println("keep stream: ", keepStream) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should you keep this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's useful for users. It would only be printed once per execution of the lambda function, and is potentially the easiest way to find out the value for that option if they don't have easy access to the configuration/deployment of the lambda themselves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM some nits not important.
Signed-off-by: Callum Styan <[email protected]>
variable when deploying via CloudFormatioEnsure the keep stream value is properly passed in as an environment variable when deploying via CloudFormationn Signed-off-by: Callum Styan <[email protected]>
Unfortunately there's no nice way to set a CLI argument for a Go lambda, so the toggling of keeping/dropping the stream label is via another environment variable that users can set in their terraform/cloudformation.
Signed-off-by: Callum Styan [email protected]