Skip to content

Commit

Permalink
Merge pull request #42 from mash-up-kr/feature/ai-lambda
Browse files Browse the repository at this point in the history
refactor: aws credentials apply
  • Loading branch information
JonghunAn authored Jul 7, 2024
2 parents 127f107 + ec2f9b2 commit 810db59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/infrastructure/aws-lambda/aws-lambda.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>('AWS_ACCESS_KEY'),
secretAccessKey: this.config.get<string>('AWS_SECRET_KEY'),
accessKeyId: this.config.get<string>('AWS_LAMBDA_ACCESS_KEY'),
secretAccessKey: this.config.get<string>('AWS_LAMBDA_SECRET_KEY'),
},
});

Expand Down

0 comments on commit 810db59

Please sign in to comment.