From d2a7f9c52de57d867fbd393628720b6db0117eed Mon Sep 17 00:00:00 2001 From: Volha Date: Sun, 9 Jun 2024 23:06:45 +0300 Subject: [PATCH 1/3] S3 bucket and CloudFront distribution are created, paths are in README, invalidation capitalized "you" --- README.md | 7 +++++++ src/components/MainLayout/MainLayout.tsx | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf86ff472..d9a9557fe 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +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/ + +Note that the site is with invalidation. + + # React-shop-cloudfront This is frontend starter project for nodejs-aws mentoring program. It uses the following technologies: diff --git a/src/components/MainLayout/MainLayout.tsx b/src/components/MainLayout/MainLayout.tsx index ec679471c..11a82a28e 100755 --- a/src/components/MainLayout/MainLayout.tsx +++ b/src/components/MainLayout/MainLayout.tsx @@ -37,7 +37,7 @@ const MainLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => { color="textSecondary" component="p" > - Thank you for your purchase! + Thank YOU for your purchase! From ebe75749f173d2f7aea62a9bb6991ed628049079 Mon Sep 17 00:00:00 2001 From: Volha Date: Mon, 10 Jun 2024 02:29:55 +0300 Subject: [PATCH 2/3] Java CDK files --- java-cdk/pom.xml | 29 +++++++++++++++++++++++ java-cdk/src/main/java/Configuration.java | 12 ++++++++++ 2 files changed, 41 insertions(+) create mode 100644 java-cdk/pom.xml create mode 100644 java-cdk/src/main/java/Configuration.java 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(); + +} From ad1d4077c5c08829c6c8b9579672837df1eff3ab Mon Sep 17 00:00:00 2001 From: Volha Date: Thu, 13 Jun 2024 09:58:35 +0300 Subject: [PATCH 3/3] README updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.