Releases: grafana/k6-jslib-aws
0.7.2
This release offers:
- A
SQSClient
allowing users to interact with the Amazon Simple Queue service from their k6 scripts. Thanks @nickcaballero and @jdinsel-xealth for your contributions 🙇🏻 AWSConfig
now has a staticfromEnvironment
method, allowing to include the AWS configuration from environment variables in a one-liner
const config = AWSConfig.fromEnvironment()
- A fix for misnamed
accessKeyId
configuration. Errors have also been adjusted to be clearer in the event of a misconfiguration. - A fix for the handling of signed requests by clients. Under certain circumstances, the
SignatureV4
class, which is also used by most of our client classes would have produced incorrect signatures, depending on the request's payload.
0.7.1
This version contains minor bug fixes:
-
S3Client.putObject(bucketName, objectKey, data)
not signing thehost
header and throwing:ERRO[0000] S3ServiceError: There were headers present in the request which were not signed
-
Renamed config's
accessKeyID
toaccessKeyId
in https://github.com/grafana/k6-jslib-aws/blob/main/src/internal/s3.ts signing credentials.
v0.7.0
This version contains a complete rewrite of the AWS signature v4 procedure, and exposes a SignatureV4
class allowing to both sign
and presign
requests to AWS directly from your k6 scripts 🚀
It is also now possible to override the jslib's client classes (S3Client
, SecretsManagerClient
, etc) host
, in order to, for example, interact with a AWS-compatible backend. We actually use that new feature ourselves in our test suite, in order to interact with localstack.
v0.6.0
This version adds support for a limited subset of the Amazon AWS Systems Manager service 🚀
From the ssm.js
file, users are now able to use the SystemsManagerClient
to retrieve a parameter from Amazon Systems Manager, using the getParameter
method.
A big thank you to @mcnamaram for contributing this feature and making this release possible 🎉 👏🏻 🙇🏻
v0.4.0
This version contains minor improvements, refactors and bug fixes:
- It implements support for the
S3Client.listObjects
prefix parameter,
which now allows you to query only objects with a name matching the
provided prefix. - It ensures the
S3Object.storageClass
is set when returned by the
S3Client.getObject
method. - Renames the existing
SecretsManagerError
to
SecretsManagerServiceError
for consistency. - Renames the
SecretsManagerClient
methodssecretID
parameter to
id
, andsecretString
tosecret
. - Aligns the internal error handling APIs
v0.3.0
The bundling of the library has been reshaped so that it delivers three different JS files, as well as their respective source-maps:
aws.min.js
: includes the whole set of available AWS services.s3.min.js
: includes theS3Client
client, as well as its dependencies.secrets-manager.min.js
: includes theSecretsManagerClient
, as well as its dependencies.
The whole codebase has also been ported to typescript, to offer and support type annotations, which both helps to develop the library and using it.