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

Is LambdaClient available? #86

Closed
aaleksandrov opened this issue Dec 22, 2023 · 3 comments
Closed

Is LambdaClient available? #86

aaleksandrov opened this issue Dec 22, 2023 · 3 comments

Comments

@aaleksandrov
Copy link

According to the Readme section (https://github.com/grafana/k6-jslib-aws#lambda) Lambda client should be available but Docs link leads to non-existing page https://k6.io/docs/javascript-api/jslib/aws/lambdaclient , also link from example (https://jslib.k6.io/aws/0.11.0/lambda.js) leads to 404

@nickcaballero
Copy link
Contributor

I see it here - https://github.com/grafana/k6-jslib-aws/blob/main/build/lambda.js. Maybe it just didn't get published?

@oleiade
Copy link
Member

oleiade commented Jan 5, 2024

Indeed @aaleksandrov @nickcaballero we have yet to publish a new release containing the lambda asset. It was a mishap on our side that the documentation went through prior.

We'll look into publishing a new version as soon as our outstanding PRs are merged 👍🏻

In the meantime, feel free to use the GitHub published file: https://raw.githubusercontent.com/grafana/k6-jslib-aws/main/build/lambda.js, but beware that those build files are not officially supported, and will likely change very soon, and I'd recommend to fallback to the jslib.k6.io as soon as the newer version is published 🙇🏻 (I'll update this issue when it is).

import { LambdaClient } from 'https://raw.githubusercontent.com/grafana/k6-jslib-aws/main/build/lambda.js'

export default function () {
}

@oleiade
Copy link
Member

oleiade commented May 13, 2024

Hi @aaleksandrov 👋🏻

Sorry for the delay; we've just published jslib-aws v0.12.0, which now officially exposes the LambdaClient.

The documentation is gonna be updated soon once: grafana/k6-docs#1585 is merged, but you can use the client already by importing it like the following:

import { AWSConfig, LambdaClient } from 'https://jslib.k6.io/aws/0.12.0/lambda.js';

Closing, but feel free to re-open or open another issue if you need further support 🙇🏻

@oleiade oleiade closed this as completed May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants