Skip to content

Commit

Permalink
added final files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jain authored and Jain committed Aug 5, 2020
1 parent 063e394 commit 5bf6167
Show file tree
Hide file tree
Showing 39 changed files with 580 additions and 301 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
infra/.terraform/
infra/terraform.tfstate
.terraform/
terraform.tfstate
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# cloudfront_terrafrom
Setting up CloudFront Distribution using Terraform
# cloudfront_terraform
Setting up CloudFront Distribution using Terraform.
![infrastructure](architecture.jpg)


# Pre-Requisite
- npm
- node.js
- aws cli
-

Expand All @@ -25,8 +27,7 @@ aws s3 cp --recursive build/ s3://xyz-gmbh-app-scripts/ --exclude "*static/*"

## Copy Static Files to Bucket-2
```
cd my-app/build
aws s3 cp --recursive static/ s3://xyz-gmbh-static-data/static/ (TODO aws s3 sync)
aws s3 cp --recursive ./build/static/ s3://xyz-gmbh-static-data/static/ (TODO aws s3 sync)
```

## Test
Expand Down
1 change: 0 additions & 1 deletion app/index.html

This file was deleted.

1 change: 1 addition & 0 deletions arch-draw.io.drawio
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<mxfile modified="2020-08-05T18:53:47.112Z" host="app.diagrams.net" agent="5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36" etag="ZqKTN9yRX_KM80UgkPGW" version="13.6.0" type="device"><diagram id="Ht1M8jgEwFfnCIfOTk4-" name="Page-1">7Vttb+I4EP41fDmpKLHzAh9JKNtK3B46brV79+XkJia4DTHrmBb215+dGPLiQEsb4KqWVigeOxPbz+OZ8Th0oL9Yf2FoOf+dhjjuACNcd+CwA4BpAdCR/0a4URK7188lESOhkhWCKfmFldBQ0hUJcVppyCmNOVlWhQFNEhzwigwxRp+qzWY0rj51iSKsCaYBinXpdxLyuZKaTr+ouME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B9xl/njr+ESeL4Xxu2w7J69HXV4FfPGn31NJJVUwozAS4wplzYvEBcjEiM09Zp+Jk6aDl18CaO9m2ja5Q+oMJYCJ3LMrZ/erM4si3X6h/HR981oTn6MHx8Qi2xzbacakDUv/R+1DgDwdzetWEdR7ChYfum+2EIFqPFXYha4phdC+4unvPYn/RYMlzPLZA9aZAZCqpZEF/MK5Gxu/EVP+n5jznn8pRmIPsORuhBoLN5YPeIJN2I8Pnqrkvo82kOrTdCVun0O8999M0qWayeThaxL9HZYp1qI2Baz1sknIQDebzW2W2kdsbArM6+lE8QFzOfZBJgwJ1R2R6pgSO20vpElibKPpAieuNO2oU1nMza/OdWRttJa4os+xlFJ96Sm+5R8AYxSlMRjEvMEOO6uDF/5Tr9cgLrTNmrY05SzsMaWN/nO69kTV2Re+Y8jh6lDL9O373xhW4Nnob9sdXADnAq2wuaPPWn7a2lMXqvNb2WfVDPqRdRUzb0w4Nb94evBvfCfhXAT3SfD5t61uvQ1cMv67zo6pnLQ+g2hkcvxap61Hboxa1LoerU1pq2GXkprE5t96N51lPD+oL0XluwXgys+hnga8Gqv+QFzxyEQj0IraUogl2WqkhGwNnMMKRTKUTPv9Fhyjc6spxDLamx2KSE425AF2IIv+1NX1wyLi6nyeppNKuduNl1q4GUCVW5xOhd1ussgTPcn+I6CTcOEyPtHPkGUbNOdQx2gGf/e/q1wbVaxn6bJi1z7aybNKhHeuM8fWwZ8vWSjnaOOViJnl4elXaNgLV9l78WuJcTl+e1AXriMn+t7vtgtMPkdiK+PJSKoBsYf2IRUZPsJEQ/Zn7/+FSNNHR0I91WdkMUi58y5P6++EUIvP4P</diagram></mxfile>
Binary file added architecture.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"files": {
"main.css": "/static/css/main.5f361e03.chunk.css",
"main.js": "/static/js/main.c21f76d4.chunk.js",
"main.js.map": "/static/js/main.c21f76d4.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.18591c3c.js",
"runtime-main.js.map": "/static/js/runtime-main.18591c3c.js.map",
"static/js/2.5c6ba6bc.chunk.js": "/static/js/2.5c6ba6bc.chunk.js",
"static/js/2.5c6ba6bc.chunk.js.map": "/static/js/2.5c6ba6bc.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.93a25ebdcfc73570573a1a05eb40eedf.js": "/precache-manifest.93a25ebdcfc73570573a1a05eb40eedf.js",
"service-worker.js": "/service-worker.js",
"static/css/main.5f361e03.chunk.css.map": "/static/css/main.5f361e03.chunk.css.map",
"static/js/2.5c6ba6bc.chunk.js.LICENSE.txt": "/static/js/2.5c6ba6bc.chunk.js.LICENSE.txt",
"static/media/logo.svg": "/static/media/logo.5d5d9eef.svg"
},
"entrypoints": [
"static/js/runtime-main.18591c3c.js",
"static/js/2.5c6ba6bc.chunk.js",
"static/css/main.5f361e03.chunk.css",
"static/js/main.c21f76d4.chunk.js"
]
}
Binary file added build/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><link href="/static/css/main.5f361e03.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,p,a=r[0],l=r[1],f=r[2],c=0,s=[];c<a.length;c++)p=a[c],Object.prototype.hasOwnProperty.call(o,p)&&o[p]&&s.push(o[p][0]),o[p]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(i&&i(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var l=t[a];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=p(p.s=t[0]))}return e}var n={},o={1:0},u=[];function p(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,p),t.l=!0,t.exports}p.m=e,p.c=n,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(e,r){if(1&r&&(e=p(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)p.d(t,n,function(r){return e[r]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/";var a=this["webpackJsonpmy-spa-app"]=this["webpackJsonpmy-spa-app"]||[],l=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var i=l;t()}([])</script><script src="/static/js/2.5c6ba6bc.chunk.js"></script><script src="/static/js/main.c21f76d4.chunk.js"></script></body></html>
Binary file added build/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions build/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
30 changes: 30 additions & 0 deletions build/precache-manifest.93a25ebdcfc73570573a1a05eb40eedf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "23962edb35008b9986dc832dc4707d59",
"url": "/index.html"
},
{
"revision": "791dcc77210aee89117a",
"url": "/static/css/main.5f361e03.chunk.css"
},
{
"revision": "62666352e685c03709bf",
"url": "/static/js/2.5c6ba6bc.chunk.js"
},
{
"revision": "e88a3e95b5364d46e95b35ae8c0dc27d",
"url": "/static/js/2.5c6ba6bc.chunk.js.LICENSE.txt"
},
{
"revision": "791dcc77210aee89117a",
"url": "/static/js/main.c21f76d4.chunk.js"
},
{
"revision": "40449d862a4949df68c5",
"url": "/static/js/runtime-main.18591c3c.js"
},
{
"revision": "5d5d9eefa31e5e13a6610d9fa7a283bb",
"url": "/static/media/logo.5d5d9eef.svg"
}
]);
3 changes: 3 additions & 0 deletions build/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
39 changes: 39 additions & 0 deletions build/service-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/

importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.93a25ebdcfc73570573a1a05eb40eedf.js"
);

self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});

workbox.core.clientsClaim();

/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});

workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {

blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});
2 changes: 2 additions & 0 deletions build/static/css/main.5f361e03.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/static/css/main.5f361e03.chunk.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions build/static/js/2.5c6ba6bc.chunk.js

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions build/static/js/2.5c6ba6bc.chunk.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/** @license React v0.19.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
1 change: 1 addition & 0 deletions build/static/js/2.5c6ba6bc.chunk.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/static/js/main.c21f76d4.chunk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5bf6167

Please sign in to comment.