The signer used to sign each request before it is sent.
Optional configuration, e.g. a custom fetch implementation.
import { SigV4Signer } from '@aws-lambda-powertools/signer/sigv4';
import { createSignedFetcher } from '@aws-lambda-powertools/signer/fetch';
const signer = new SigV4Signer({ service: 'execute-api' });
const signedFetch = createSignedFetcher(signer);
const response = await signedFetch('https://example.execute-api.us-east-1.amazonaws.com/items');
Create a drop-in
fetchfunction that signs every request with the givenSignerbefore sending it.The returned function has the same signature as the global
fetch, so it can be passed to libraries that accept a customfetchimplementation, or used directly.