From 2883519a3f978ae18a9acaebc85c391bbe821ab9 Mon Sep 17 00:00:00 2001 From: Jade Zheng Date: Tue, 30 Jul 2024 20:52:33 +0800 Subject: [PATCH] chore: remove kms from lambda --- packages/pluto-infra/src/aws/function.lambda.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/pluto-infra/src/aws/function.lambda.ts b/packages/pluto-infra/src/aws/function.lambda.ts index a79e4224..7b148f27 100644 --- a/packages/pluto-infra/src/aws/function.lambda.ts +++ b/packages/pluto-infra/src/aws/function.lambda.ts @@ -200,15 +200,6 @@ export class Lambda extends pulumi.ComponentResource implements IResourceInfra, return object.key; } - const kms = new aws.kms.Key( - this.lambdaName, - { - description: `KMS key for ${this.lambdaName} lambda function`, - enableKeyRotation: true, - }, - { parent: this } - ); - return new aws.lambda.Function( this.lambdaName, { @@ -222,7 +213,6 @@ export class Lambda extends pulumi.ComponentResource implements IResourceInfra, environment: { variables: envs, }, - kmsKeyArn: kms.arn, timeout: 10 * 60, }, { parent: this }