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 { -}