(@aws-cdk/aws-lambda): add an object version parameter to CfnParametersCode #8702
Closed
1 of 2 tasks
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
The
CfnParametersCode
class currently adds abucketName
andobjectKey
parameter to the stack. I would like to addobjectVersion
as well.Use Case
I am concerned about a scenario where a hotfix needs to be made to the CloudFormation template that should not include an update to the Function's code, but the s3 code archive has been update separately.
Since the object version has not been pinned, I believe this would result in a new version being created and an unintentional update of the lambda's code.
Proposed Solution
A rough implementation was discussed in the original PR:
#2027 (comment)
Essentially just add the
objectVersion
parameter following the same convention as the bucket and key parameters.Other
The existing
CfnParametersCode
implementation:https://github.com/aws/aws-cdk/blob/master/packages/@aws-cdk/aws-lambda/lib/code.ts#L248
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: