Skip to content

Commit 8d86522

Browse files
committed
fix: Properly pass clientId to lambda runtime
1 parent 4265e6e commit 8d86522

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

lib/stac-auth-proxy/index.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,18 @@ export class StacAuthProxyLambda extends Construct {
106106
constructor(scope: Construct, id: string, props: StacAuthProxyLambdaProps) {
107107
super(scope, id);
108108

109-
const runtime = new StacAuthProxyLambdaRuntime(this, "runtime", {
110-
vpc: props.vpc,
111-
subnetSelection: props.subnetSelection,
112-
apiEnv: props.apiEnv,
113-
upstreamUrl: props.upstreamUrl,
114-
oidcDiscoveryUrl: props.oidcDiscoveryUrl,
115-
lambdaFunctionOptions: props.lambdaFunctionOptions,
116-
});
109+
const { domainName, ...runtimeProps } = props;
110+
111+
const runtime = new StacAuthProxyLambdaRuntime(
112+
this,
113+
"runtime",
114+
runtimeProps
115+
);
117116
this.lambdaFunction = runtime.lambdaFunction;
118117

119118
const { api } = new LambdaApiGateway(this, "stac-auth-proxy", {
120119
lambdaFunction: runtime.lambdaFunction,
121-
domainName: props.domainName,
120+
domainName,
122121
});
123122

124123
this.url = api.url!;

0 commit comments

Comments
 (0)