
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@serverless/aws-sdk
Advanced tools
The aws sdk + powerful high-level serverless utils.
// require the serverless aws sdk.
const aws = require(`@serverless/aws-sdk`)
// set credentials, as usual.
aws.config.update({
credentials: { accessKeyId: 'xxx', secretAccessKey: 'xxx' },
region: 'us-east-1'
})
// use any service, as usual.
const s3 = new aws.S3()
// use some powerful utils. More info below.
const certificate = await aws.utils.deployCertificate(params)
Deploys a CloudFront distribution domain by adding the domain to the distribution and deploying the certificate and DNS records.
const params = {
domain: 'serverless.com',
distributionId: 'xxx'
}
const {
certificateArn,
certificateStatus,
domainHostedZoneId
} = await aws.utils.deployDistributionDomain(params)
Deploys a free ACM certificate for the given domain.
const params = {
domain: 'serverless.com'
}
const { certificateArn, certificateStatus, domainHostedZoneId } = await aws.utils.deployCertificate(
params
)
Deploys a DNS records for a distribution domain.
const params = {
domain: 'serverless.com',
distributionUrl: 'xxx.cloudfront.net'
}
const { domainHostedZoneId } = await aws.utils.deployDistributionDns(params)
Adds a domain or subdomain to a CloudFront Distribution.
const params = {
domain: 'serverless.com',
certificateArn: 'xxx:xxx',
certificateStatus: 'ISSUED'
}
const { domainHostedZoneId } = await aws.utils.addDomainToDistribution(params)
Fetches the hosted zone id for the given domain.
const params = {
domain: 'serverless.com'
}
const { domainHostedZoneId } = await aws.utils.getDomainHostedZoneId(params)
Updates or creates the given role name with the given service & policy. You can specify an inline policy:
const params = {
name: 'my-role',
service: 'lambda.amazonaws.com',
policy: [
{
Effect: 'Allow',
Action: ['sts:AssumeRole'],
Resource: '*'
},
{
Effect: 'Allow',
Action: ['logs:CreateLogGroup', 'logs:CreateLogStream'],
Resource: '*'
}
]
}
const { roleArn } = await aws.utils.updateOrCreateRole(params)
Or you can specify the policy as a maanged policy arn string:
const params = {
name: 'my-role',
service: 'lambda.amazonaws.com',
policy: 'arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole'
}
const { roleArn } = await aws.utils.updateOrCreateRole(params)
If you don't specify a policy property, an admin policy will be created by default.
Deletes the given role and all its attached managed and inline policies.
const params = {
name: 'my-role'
}
await aws.utils.deleteRole(params)
Deletes all attached managed and inline policies for the given role.
const params = {
name: 'my-role'
}
await aws.utils.deleteRolePolicies(params)
Updates a lambda if it exists, otherwise creates a new one.
const lambdaParams = {
lambdaName: 'my-lambda', // required
roleArn: 'aws:iam:role:arn:xxx', // required
lambdaSrc: 'path/to/lambda/directory' // required. could also be a buffer of a zip file
memory: 512 // optional, along with the other lambda config
}
const { lambdaArn, lambdaSize, lambdaSha } = await aws.utils.updateOrCreateLambda(params)
Deploys the DNS records for an Api Gateway V2 HTTP custom domain
const lambdaParams = {
domain: 'serverless.com', // required. The custom domain you'd like to configure.
apigatewayHostedZoneId: 'qwertyuiop', // required. The regional hosted zone id of the APIG custom domain
apigatewayDomainName: 'd-qwertyuiop.xxx.com' // required. The regional endpoint of the APIG custom domain
}
const { domainHostedZoneId } = await aws.utils.deployApigDomainDns(params)
FAQs
Powerful Serverless Utilities
The npm package @serverless/aws-sdk receives a total of 0 weekly downloads. As such, @serverless/aws-sdk popularity was classified as not popular.
We found that @serverless/aws-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.