Skip to content
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

Allow specifying LambdaAuthorizer Node runtime #26

Open
austinbutler opened this issue Sep 28, 2021 · 4 comments
Open

Allow specifying LambdaAuthorizer Node runtime #26

austinbutler opened this issue Sep 28, 2021 · 4 comments
Labels
kind/enhancement Improvements or new features

Comments

@austinbutler
Copy link

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Seems to choose Node 12.x and not allow configuring, is that intentional?

@austinbutler austinbutler added the kind/enhancement Improvements or new features label Sep 28, 2021
@stack72 stack72 self-assigned this Sep 29, 2021
@stack72
Copy link
Contributor

stack72 commented Sep 29, 2021

Hi @austinbutler

What version of pulumi-awsx are you using?

Paul

@austinbutler
Copy link
Author

0.30.0

@stack72
Copy link
Contributor

stack72 commented Sep 30, 2021

Hi @austinbutler

Please can you give me a snippet of the code you are using here to help me understand what you want us to change?

Thanks

Paul

@austinbutler
Copy link
Author

austinbutler commented Sep 30, 2021

Something like:

const authorizer: awsx.apigateway.LambdaAuthorizer = {
  ...restOfParams,
  runtime: "nodejs14.x",
  handler: async (
    event: awsx.apigateway.AuthorizerEvent
  ): Promise<awsx.apigateway.AuthorizerResponse> => {
    return awsx.apigateway.authorizerResponse(
      principal,
      effect,
      event.methodArn,
      undefined,
      apikey
    );
  },
};

Runtime doesn't seem to be exposed here: https://github.com/pulumi/pulumi-awsx/blob/af311d33f20aef8462ada78b494ea17ec16e767c/nodejs/awsx/apigateway/lambdaAuthorizer.ts#L32

@danielrbradley danielrbradley transferred this issue from pulumi/pulumi-awsx May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants