
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@vercel/oidc-aws-credentials-provider
Advanced tools
Runtime AWS credentials provider intended for use with Vercel Functions
â–¸ awsCredentialsProvider(init): AwsCredentialIdentityProvider
Obtains the Vercel OIDC token and creates an AWS credential provider function that gets AWS credentials by calling STS AssumeRoleWithWebIdentity API.
Example
import * as s3 from '@aws-sdk/client-s3';
import { awsCredentialsProvider } from '@vercel/functions/oidc';
const s3Client = new s3.S3Client({
credentials: awsCredentialsProvider({
roleArn: 'arn:aws:iam::1234567890:role/RoleA',
clientConfig: { region: 'us-west-2' },
clientPlugins: [addFooHeadersPlugin],
roleAssumerWithWebIdentity: customRoleAssumer,
roleSessionName: 'session_123',
providerId: 'graph.facebook.com',
policyArns: [{ arn: 'arn:aws:iam::1234567890:policy/SomePolicy' }],
policy:
'{"Statement": [{"Effect": "Allow", "Action": "s3:ListBucket", "Resource": "*"}]}',
durationSeconds: 7200,
}),
});
| Name | Type | Description |
|---|---|---|
init | AwsCredentialsProviderInit | The initialization object. |
AwsCredentialIdentityProvider
A function that provides AWS credentials.
packages/oidc-aws-credentials-provider/src/aws-credentials-provider.ts:61
FAQs
Runtime AWS credentials provider intended for use with Vercel Functions
The npm package @vercel/oidc-aws-credentials-provider receives a total of 506 weekly downloads. As such, @vercel/oidc-aws-credentials-provider popularity was classified as not popular.
We found that @vercel/oidc-aws-credentials-provider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.