
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@astro-aws/constructs
Advanced tools
Constructs for deploying your Astro project that is built using @astro-aws/adapter.
# Using NPM
npm install @astro-aws/constructs constructs aws-cdk-lib
# Using Yarn
yarn add @astro-aws/constructs constructs aws-cdk-lib
# Using PNPM
pnpm add @astro-aws/constructs constructs aws-cdk-lib
# Using Bun
bun add @astro-aws/constructs constructs aws-cdk-lib
import { Stack } from "aws-cdk-lib/core"
import type { StackProps } from "aws-cdk-lib/core"
import { AstroAWS } from "@astro-aws/constructs"
export interface AstroSiteStackProps extends StackProps {}
export class AstroSiteStack extends Stack {
public constructor(scope: Construct, id: string, props: AstroSiteStackProps) {
super(scope, id, props)
new AstroAWS(this, "AstroAWS", {
websitePath: "..", // Replace with the path to your website code.
})
}
}
All the resources created by the AstroAWS construct can be customized. We expose every prop of the resources that is customizable. The props can be set by passing them in to the cdk field on the AstroAWS construct props. Depending on the deployment method, not all of the props will be used. The constructed can be access through the cdk field on the AstroAWS construct object.
import { Stack, CfnOutput } from "aws-cdk-lib/core"
import type { StackProps } from "aws-cdk-lib/core"
import { AstroAWS } from "@astro-aws/constructs"
export interface AstroSiteStackProps extends StackProps {}
export class AstroSiteStack extends Stack {
public constructor(scope: Construct, id: string, props: AstroSiteStackProps) {
super(scope, id, props)
const astroAWS = new AstroAWS(this, "AstroAWS", {
cdk: {
lambdaFunction: {
memorySize: 1024,
},
},
websitePath: "..", // Replace with the path to your website code.
})
new CfnOutput(this, "DistributionDomainName", {
value: astroAWS.cdk.cloudfrontDistribution.distributionDomainName,
})
}
}
FAQs
Constructs for deploying an Astro application to AWS Lambda
We found that @astro-aws/constructs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.