Closed darrenswhite closed 1 year ago
Hi! I wanted to confirm, does this include publishing versions? I have heard from AWS that versions are required for full use of Snap Start.
See: https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html
You can use SnapStart only on published function versions and aliases that point to versions. You can't use SnapStart on a function's unpublished version ($LATEST).
This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days
Hi! I wanted to confirm, does this include publishing versions? I have heard from AWS that versions are required for full use of Snap Start.
See: https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html
You can use SnapStart only on published function versions and aliases that point to versions. You can't use SnapStart on a function's unpublished version ($LATEST).
this PR does not include publishing versions. you can use the already existing variable publish
to enable publishing a new version here https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/master/variables.tf#L125
Replaced with new PR #406.
@mmichna I have updated the new PR with your comments.
@faxx1080 the new PR will automatically publish a new version when snap start is enabled.
Hi @darrenswhite
Thank you! However I am not sure what this does, we can already use "publish = true" for snapstart.
My thought is what happens to older versions of the function?
Currently I wrote a Perl script that uses the AWS CLI to enumerate versions not tagged and deletes those one by one. I use a null terraform provider to invoke the Perl script.
Hi @darrenswhite
Thank you! However I am not sure what this does, we can already use "publish = true" for snapstart.
My thought is what happens to older versions of the function?
Currently I wrote a Perl script that uses the AWS CLI to enumerate versions not tagged and deletes those one by one. I use a null terraform provider to invoke the Perl script.
Correct, the new PR sets publish = true
when snap_start = true
as suggested by @mmichna.
I am unsure what happens to older versions of the function.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
Motivation and Context
Breaking Changes
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request