Poc lambda subhosting (#10192)

Add `SERVERLESS_LAMBDA_SUBHOSTING_ROLE` to allow hosting lambdas in
separate aws account

Tested with old configuration and new configuration
This commit is contained in:
martmull
2025-02-14 09:18:49 +01:00
committed by GitHub
parent 9cbcf6293b
commit f2da915b20
7 changed files with 945 additions and 25 deletions

View File

@ -409,9 +409,17 @@ export class EnvironmentVariables {
})
@ValidateIf((env) => env.SERVERLESS_TYPE === ServerlessDriverType.Lambda)
@IsString()
@IsOptional()
SERVERLESS_LAMBDA_ROLE: string;
@EnvironmentVariablesMetadata({
group: EnvironmentVariablesGroup.ServerlessConfig,
description: 'Role to assume when hosting lambdas in dedicated AWS account',
})
@ValidateIf((env) => env.SERVERLESS_TYPE === ServerlessDriverType.Lambda)
@IsString()
@IsOptional()
SERVERLESS_LAMBDA_SUBHOSTING_ROLE?: string;
@EnvironmentVariablesMetadata({
group: EnvironmentVariablesGroup.ServerlessConfig,
sensitive: true,