-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: add datasource for AWS Lambda Layers #28251
base: main
Are you sure you want to change the base?
feat: add datasource for AWS Lambda Layers #28251
Conversation
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
…ed-arn-datasource
…apag-Lloyd/renovate into kayma/add-aws-versioned-arn-datasource
…oned-arn-datasource
Reopens #19081 I stopped working on that PR because I found out that you usually do not have the
aws lambda add-layer-version-permission \
--layer-name my-layer \
--statement-id xaccount \
--action lambda:ListLayerVersions \
--principal 123456789012 \
--version-number 1 |
Still have to work on the documentation |
Todo: test this on a real repository |
|
||
@cache({ | ||
namespace: `datasource-${AwsLambdaLayerDataSource.id}`, | ||
key: (serializedLayerFilter: string) => |
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.
wrong, parameters are same as the function parameters below
const filter: AwsLambdaLayerFilter = JSON.parse( | ||
serializedLambdaLayerFilter | ||
); |
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.
this should be done inside the function call below
import { Datasource } from '../datasource'; | ||
import type { GetReleasesConfig, ReleaseResult } from '../types'; | ||
|
||
export interface AwsLambdaLayerFilter { |
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.
use zod Schema parsing to validate user input
Changes
This PR adds a new datasource to update the versioned layer arns for AWS Lambda Layers.
Context
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: