package com.otognan.driverpete.logic;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.BasicAWSCredentials;


@Configuration
public class AWSConfiguration {
    
    @Value("${AWS_ACCESS_KEY_ID}")
    private String amazonAWSAccessKey;

    @Value("${AWS_SECRET_KEY}")
    private String amazonAWSSecretKey;
    
    @Bean
    public AWSCredentials amazonAWSCredentials() {
        // Beanstalk defines empty keys by default, so we better check it here
        if(amazonAWSAccessKey == null || amazonAWSAccessKey.isEmpty() ||
                amazonAWSAccessKey.equals("${AWS_ACCESS_KEY_ID}")) {
            throw new IllegalArgumentException("AWSAccessKey is not available");
        }
        if(amazonAWSSecretKey == null || amazonAWSSecretKey.isEmpty() || 
                amazonAWSSecretKey.equals("${AWS_SECRET_KEY}")) {
            throw new IllegalArgumentException("AWSSecretKey is not available");
        }
        System.out.println("______________________________");
        System.out.println(amazonAWSAccessKey);
        return new BasicAWSCredentials(amazonAWSAccessKey, amazonAWSSecretKey);
    }
}
@@ -1107,118 +1107,8 @@
   %7D%0A
-        System.out.println(%22______________________________%22);%0A        System.out.println(amazonAWSAccessKey);%0A
     

remove print