diff --git a/src/infrastructure/aws-lambda/aws-lambda.service.ts b/src/infrastructure/aws-lambda/aws-lambda.service.ts index 0a0b21d..91764b2 100644 --- a/src/infrastructure/aws-lambda/aws-lambda.service.ts +++ b/src/infrastructure/aws-lambda/aws-lambda.service.ts @@ -4,12 +4,11 @@ import { ConfigService } from '@nestjs/config'; @Injectable() export class AwsLambdaService { constructor(private readonly config: ConfigService) {} - // TODO credentials μΆ”κ°€ ν•„μš” (acccess_key, secret_key) readonly client = new LambdaClient({ region: 'ap-northeast-2', credentials: { - accessKeyId: this.config.get('AWS_ACCESS_KEY'), - secretAccessKey: this.config.get('AWS_SECRET_KEY'), + accessKeyId: this.config.get('AWS_LAMBDA_ACCESS_KEY'), + secretAccessKey: this.config.get('AWS_LAMBDA_SECRET_KEY'), }, });