Skip to content

Commit

Permalink
⚡️ Update: aoss에서 es로 변경
Browse files Browse the repository at this point in the history
OpenSearch Serverless 유기하기로 결정

#
  • Loading branch information
ks1ksi committed Oct 1, 2023
1 parent 6b2ee81 commit 8672f5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/search/search.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ describe('SearchService', () => {
return 'http://localhost:9200';
case 'OPENSEARCH_INDEX':
return 'index';
case 'AWS_REGION':
return 'ap-northeast-2';
default:
return null;
}
Expand Down
4 changes: 2 additions & 2 deletions src/search/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export class SearchService {
constructor(private readonly configService: ConfigService) {
this.client = new Client({
...AwsSigv4Signer({
region: 'ap-northeast-1',
service: 'aoss',
region: this.configService.get<string>('AWS_REGION'),
service: 'es',
getCredentials: () => {
const credentialsProvider = defaultProvider();
return credentialsProvider();
Expand Down

0 comments on commit 8672f5d

Please sign in to comment.