cdk-constructs icon indicating copy to clipboard operation
cdk-constructs copied to clipboard

@cloudcomponents/cdk-cloudfront-authorization | Support custom lambda names

Open coltenkrauter opened this issue 3 years ago • 0 comments

I would like to provide custom names for generated lambda functions, would this be possible? If not, could support be added to accomplish this?

For example, here is a generated function name when using the SPA example found here: https://www.npmjs.com/package/@cloudcomponents/cdk-cloudfront-authorization

StackName-signoutFunction60A00DBD-dVM0aZfroavU

I would like to customize it something like this,

StackNameAuthSignout

Related thoughts

The ServerlessNextJS construct supports supplying custom names for lambdas, like this,

name:
    defaultLambda: fooDefaultLambda
    apiLambda: fooApiLambda
    imageLambda: fooImageLambda

So, perhaps @cloudcomponents/cdk-cloudfront-authorization could also support something similar.

coltenkrauter avatar Apr 05 '22 23:04 coltenkrauter