Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions platform/src/components/aws/ssr-site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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`,
Expand Down Expand Up @@ -1314,15 +1313,15 @@ 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`,
{
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
Expand Down