Skip to content

Commit

Permalink
Feat: MemberResponseDto 에 경로 반환 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gytjd committed Nov 20, 2024
1 parent 4c32054 commit e187165
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class AiwaKeyResponseDto {
private String accessKey; // Access Key (AWS의 경우만 있을 수 있음)
private String secretKey; // Secret Key (AWS의 경우만 있을 수 있음)
private String gcpKeyPath; // GCP Key Path (GCP의 경우만 있을 수 있음)
private String awsTfvarsUrl;
private String gcpTfvarsUrl;

// Entity -> DTO 변환 메서드
public static AiwaKeyResponseDto toDto(AiwaKey aiwaKey) {
Expand All @@ -20,6 +22,8 @@ public static AiwaKeyResponseDto toDto(AiwaKey aiwaKey) {
dto.setAccessKey(aiwaKey.getAccessKey());
dto.setSecretKey(aiwaKey.getSecretKey());
dto.setGcpKeyPath(aiwaKey.getGcpKeyPath());
dto.setAwsTfvarsUrl(aiwaKey.getAwsTfvarsUrl());
dto.setGcpTfvarsUrl(aiwaKey.getGcpTfvarsUrl());
return dto;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public String addOrUpdateAwsAndGcpKey(String email, String companyName, String a

// AWS 및 GCP 키 업데이트 또는 추가
AiwaKey aiwaKey = findOrCreateAiwaKey(member, companyName);

aiwaKey.setAccessKey(accessKey);
aiwaKey.setSecretKey(secretKey);

// AWS tfvars 파일 생성 및 URL 반환
String awsTfvarsUrl = s3Service.createAwsTfvarsFile(email, accessKey, secretKey);
aiwaKey.setAwsTfvarsUrl(awsTfvarsUrl);
Expand Down

0 comments on commit e187165

Please sign in to comment.