diff --git a/platform/src/components/aws/ssr-site.ts b/platform/src/components/aws/ssr-site.ts index 38ff20cc89..2d5cc3fa3e 100644 --- a/platform/src/components/aws/ssr-site.ts +++ b/platform/src/components/aws/ssr-site.ts @@ -11,9 +11,8 @@ import { interpolate, ComponentResourceOptions, Resource, + asset as pulumiAsset, } from "@pulumi/pulumi"; -import * as pulumi from "@pulumi/pulumi"; -import * as aws from "@pulumi/aws"; import { Cdn, CdnArgs } from "./cdn.js"; import { Function, FunctionArgs, FunctionArn } from "./function.js"; import { parseLambdaEdgeArn } from "./helpers/arn.js"; @@ -1285,7 +1284,7 @@ async function handler(event) { const timeout = edgeConfig?.timeout ? toSeconds(edgeConfig.timeout) : 5; // Create IAM role for Lambda@Edge using SST transform pattern - const edgeRole = new aws.iam.Role( + const edgeRole = new iam.Role( ...transform( undefined, `${name}EdgeFunctionRole`, @@ -1314,7 +1313,7 @@ async function handler(event) { ); // Create the Lambda@Edge function using SST transform pattern - const edgeFunction = new aws.lambda.Function( + const edgeFunction = new lambda.Function( ...transform( undefined, `${name}EdgeFunction`, @@ -1322,7 +1321,7 @@ async function handler(event) { runtime: "nodejs22.x", handler: "index.handler", role: edgeRole.arn, - code: new pulumi.asset.FileArchive( + code: new pulumiAsset.FileArchive( path.join($cli.paths.platform, "dist", "oac-edge-signer"), ), publish: true, // Required for Lambda@Edge