diff --git a/README.md b/README.md index d9a9557fe..637008e94 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ You can access the content via the following links: S3 - http://volia-task2-bucket.s3-website-us-east-1.amazonaws.com/ -CloudFront - https://d2s2j8ibzo2f3m.cloudfront.net/ +CloudFront - d21hvg5oqzabr.cloudfront.net Note that the site is with invalidation. diff --git a/java-cdk/pom.xml b/java-cdk/pom.xml new file mode 100644 index 000000000..b26ef0053 --- /dev/null +++ b/java-cdk/pom.xml @@ -0,0 +1,29 @@ + + + 4.0.0 + + org.example + volia-aws-task2-java + 1.0-SNAPSHOT + + + 11 + 11 + + + + software.amazon.awssdk + s3 + 2.25.69 + test + + + software.amazon.awssdk + auth + 2.25.69 + + + + \ No newline at end of file diff --git a/java-cdk/src/main/java/Configuration.java b/java-cdk/src/main/java/Configuration.java new file mode 100644 index 000000000..f7cadd0d1 --- /dev/null +++ b/java-cdk/src/main/java/Configuration.java @@ -0,0 +1,12 @@ +public class Configuration { + AWSCredentials credentials = new BasicAWSCredentials( + "", + "" + ); + AmazonS3 s3client = AmazonS3ClientBuilder + .standard() + .withCredentials(new AWSStaticCredentialsProvider(credentials)) + .withRegion(Regions.US_EAST_2) + .build(); + +}