From 80a68590e950676325196b451f3c7ade5ffc7a7f Mon Sep 17 00:00:00 2001 From: RyuKwanKon Date: Sun, 17 Sep 2023 16:48:54 +0900 Subject: [PATCH] =?UTF-8?q?[del]=20#40=20=EB=B6=88=ED=95=84=EC=9A=94=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HDmediServerApplication.java | 5 --- .../hdmedi_server/infra/smtp/s3/S3Config.java | 39 ------------------- .../infra/smtp/s3/S3Provider.java | 4 -- 3 files changed, 48 deletions(-) delete mode 100644 src/main/java/com/kusithm/hdmedi_server/infra/smtp/s3/S3Config.java delete mode 100644 src/main/java/com/kusithm/hdmedi_server/infra/smtp/s3/S3Provider.java diff --git a/src/main/java/com/kusithm/hdmedi_server/HDmediServerApplication.java b/src/main/java/com/kusithm/hdmedi_server/HDmediServerApplication.java index 258aa3a..4de406d 100644 --- a/src/main/java/com/kusithm/hdmedi_server/HDmediServerApplication.java +++ b/src/main/java/com/kusithm/hdmedi_server/HDmediServerApplication.java @@ -12,11 +12,6 @@ @SpringBootApplication @EnableMongoAuditing public class HDmediServerApplication { - // aws sdk 연동 - static { - System.setProperty("com.amazonaws.sdk.disableEc2Metadata", "true"); - } - public static void main(String[] args) { SpringApplication.run(HDmediServerApplication.class, args); } diff --git a/src/main/java/com/kusithm/hdmedi_server/infra/smtp/s3/S3Config.java b/src/main/java/com/kusithm/hdmedi_server/infra/smtp/s3/S3Config.java deleted file mode 100644 index 31ebb13..0000000 --- a/src/main/java/com/kusithm/hdmedi_server/infra/smtp/s3/S3Config.java +++ /dev/null @@ -1,39 +0,0 @@ -//package com.kusithm.hdmedi_server.infra.smtp.s3; -// -//import com.amazonaws.auth.AWSCredentials; -//import com.amazonaws.auth.AWSStaticCredentialsProvider; -//import com.amazonaws.auth.BasicAWSCredentials; -//import com.amazonaws.services.s3.AmazonS3; -//import com.amazonaws.services.s3.AmazonS3Client; -//import com.amazonaws.services.s3.AmazonS3ClientBuilder; -//import동 org.springframework.beans.factory.annotation.Value; -//import org.springframework.context.annotation.Bean; -//import org.springframework.context.annotation.Configuration; -// -//@Configuration -//public class S3Config { -// // S3에 접근하는 AWS IAM 계정의 access key 입니다. -// @Value("${cloud.aws.credentials.access-key}") -// private String iamAccessKey; -// // S3에 접근하는 AWS IAM 계정의 secret key 입니다. -// @Value("${cloud.aws.credentials.secret-key}") -// private String iamSecretKey; -// // S3 서버가 위한 지역을 가져옵니다. -// @Value("${cloud.aws.region.static}") -// private String region; -// -// /** -// * S3에 접근 권한이 주워진 객체를 Spring Bean에 등록합니다. -// * param: none -// * return: S3에 접근 권한이 주워진 객체를 return 합니다. -// */ -// @Bean -// public AmazonS3Client amazonS3Client() { -// BasicAWSCredentials awsCredentials = new BasicAWSCredentials(iamAccessKey, iamSecretKey); -// return (AmazonS3Client) AmazonS3ClientBuilder.standard() -// .withRegion(region).enablePathStyleAccess() -// .withCredentials(new AWSStaticCredentialsProvider(awsCredentials)) -// .build(); -// } -//} -// diff --git a/src/main/java/com/kusithm/hdmedi_server/infra/smtp/s3/S3Provider.java b/src/main/java/com/kusithm/hdmedi_server/infra/smtp/s3/S3Provider.java deleted file mode 100644 index 24e3be9..0000000 --- a/src/main/java/com/kusithm/hdmedi_server/infra/smtp/s3/S3Provider.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.kusithm.hdmedi_server.infra.smtp.s3; - -public class S3Provider { -}