Functions: Cannot specify 'Pinned' value
ShaunEdiger opened this issue · 4 comments
As the API is currently exposed, lambda functions referenced with gg_group_setup are on-demand by default with no option to set them to pinned. I need a way to specify that a lambda function is long-lived / pinned – see create_function_definition.
I've been able hack in support by overriding GroupCommands._create_function_definition in a subclass.
After subclassing, the relevant config –
"lambda_functions": { "function_name": { "arn": "function_arn", "arn_qualifier": "dev" }
– is updated to look like this –
"lambda_functions": { "function_name": { "arn": "function_arn", "arn_qualifier": "dev", "pinned": false }
Are there plans to expose this functionality? I can package these changes up into a PR if that's helpful.
This was originally published as a gap-fill until CloudFormation support for GG showed up. That being said, I think that would be a great addition.
Of course, and thank you for the hard work on this project. CloudFormation support would be ideal. I'm not in the position to promise a pull request at the moment. My hope is that a contribution would be useful for at least a little while until CloudFormation support arrives.