Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,36 @@ Combination of `cloudfront:setup` and `cloudfront:build:deploy` commands with or
### `serverless:remove`

Remove an entire stack configured in `serverless.yml` via CloudFormation.


# TASK 2 - SPA Deployment Assignment

## Task 2.1: Manual Deployment
### S3 Bucket:
App is deployed and accessible via the S3 website URL:
- **S3 Website URL**:
[http://my-shop-manual.s3-website-us-east-1.amazonaws.com/](http://my-shop-manual.s3-website-us-east-1.amazonaws.com/)

### CloudFront Distribution:
App is distributed globally via CloudFront (manually configured):
- **CloudFront URL**:
[https://d86m02ymanfm9.cloudfront.net/](https://d86m02ymanfm9.cloudfront.net/)

---

## Task 2.2: Automated Deployment (Via AWS CDK)
### Deployment Summary:
The app was automatically deployed to AWS via CDK:
- **S3 Bucket**: Created automatically via AWS CDK and populated with app files.
- **CloudFront Distribution**: Configured to distribute the app globally with cache invalidation.

### Deployment URL:
App deployed via CloudFront using AWS CDK automation:
- **CDK Deployment CloudFront URL**:
[https://d2misp4o9rqxi6.cloudfront.net/](https://d2misp4o9rqxi6.cloudfront.net/)

### Automation Scripts:
The following npm scripts were created and work seamlessly:
1. **Build the Frontend App**:
```bash
npm run build
8 changes: 8 additions & 0 deletions infra/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.js
!jest.config.js
*.d.ts
node_modules

# CDK asset staging directory
.cdk.staging
cdk.out
6 changes: 6 additions & 0 deletions infra/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.ts
!*.d.ts

# CDK asset staging directory
.cdk.staging
cdk.out
Loading