Skip to content

Commit e862f2c

Browse files
authored
Merge pull request #1199 from dawidborycki/LP-Serverless-AWS-S3
LP on Serverless Framework showing how to deploy a static website to S3
2 parents 49510a8 + 31b5613 commit e862f2c

File tree

8 files changed

+741
-0
lines changed

8 files changed

+741
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Deploy a static website to Amazon S3 and integrate with AWS Lambda and DynamoDB using the Serverless Framework
3+
4+
minutes_to_complete: 30
5+
6+
who_is_this_for: This learning path is for software developers interested in learning how to deploy serverless applications using the Serverless Framework and Amazon Web Services.
7+
8+
learning_objectives:
9+
- Create a multi-resource Serverless Framework solution.
10+
- Automate deployment of a static website to Amazon S3.
11+
12+
prerequisites:
13+
- A Windows on Arm computer such as [Windows Dev Kit 2023](https://learn.microsoft.com/en-us/windows/arm/dev-kit), a Lenovo Thinkpad X13s running Windows 11, or a Windows on Arm [virtual machine](/learning-paths/cross-platform/woa_azure/).
14+
- Any code editor. [Visual Studio Code for Arm64](https://code.visualstudio.com/docs/?dv=win32arm64user) is suitable.
15+
- Completion of this [Learning Path](/learning-paths/servers-and-cloud-computing/serverless-framework-aws-intro/).
16+
17+
author_primary: Dawid Borycki
18+
19+
### Tags
20+
skilllevels: Introductory
21+
subjects: Web
22+
cloud_service_providers: Amazon Web Services
23+
24+
armips:
25+
- Neoverse
26+
27+
tools_software_languages:
28+
- Node.js
29+
- Visual Studio Code
30+
31+
operatingsystems:
32+
- Linux
33+
- Windows
34+
- MacOS
35+
36+
37+
### FIXED, DO NOT MODIFY
38+
# ================================================================================
39+
weight: 1 # _index.md always has weight of 1 to order correctly
40+
layout: "learningpathall" # All files under learning paths have this same wrapper
41+
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content.
42+
---
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
# ================================================================================
3+
# Edit
4+
# ================================================================================
5+
6+
next_step_guidance: >
7+
You can continue learning about migrating applications to Arm.
8+
# 1-3 sentence recommendation outlining how the reader can generally keep learning about these topics, and a specific explanation of why the next step is being recommended.
9+
10+
recommended_path: "/learning-paths/servers-and-cloud-computing/migration/"
11+
# Link to the next learning path being recommended(For example this could be /learning-paths/servers-and-cloud-computing/mongodb).
12+
13+
14+
# further_reading links to references related to this path. Can be:
15+
# Manuals for a tool / software mentioned (type: documentation)
16+
# Blog about related topics (type: blog)
17+
# General online references (type: website)
18+
19+
further_reading:
20+
- resource:
21+
title: Serverless Framework
22+
link: https://www.serverless.com
23+
type: website
24+
- resource:
25+
title: Serverless Framework documentation
26+
link: https://www.serverless.com/framework/docs
27+
type: Documentation
28+
- resource:
29+
title: AWS Lambda
30+
link: https://aws.amazon.com/lambda/
31+
type: Documentation
32+
33+
# ================================================================================
34+
# FIXED, DO NOT MODIFY
35+
# ================================================================================
36+
weight: 21 # set to always be larger than the content in this path, and one more than 'review'
37+
title: "Next Steps" # Always the same
38+
layout: "learningpathall" # All files under learning paths have this same wrapper
39+
---
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
review:
3+
- questions:
4+
question: >
5+
What is the primary purpose of using the Serverless Framework in your project?
6+
answers:
7+
- To create a manual deployment process for AWS resources.
8+
- To automate the deployment and management of AWS resources using infrastructure as code.
9+
- To manage server operations on local servers.
10+
- To replace AWS services with third-party alternatives.
11+
correct_answer: 2
12+
explanation: >
13+
Serverless Framework automates the deployment and management of AWS resources using infrastructure as code.
14+
15+
- questions:
16+
question: >
17+
What is the role of the serverless-s3-sync plugin in the deployment process?
18+
answers:
19+
- It synchronizes local files with an S3 bucket during deployment.
20+
- It compiles JavaScript files before deployment.
21+
- It creates new S3 buckets for each deployment stage.
22+
- It compresses files before uploading them to S3.
23+
24+
correct_answer: 1
25+
explanation: >
26+
Serverless-s3-sync plugin synchronizes local files with an S3 bucket during deployment.
27+
28+
- questions:
29+
question: >
30+
What was the purpose of using the prepare script in your serverless project?
31+
answers:
32+
- To compile all source files before deploying them to AWS.
33+
- To dynamically update the index.js file with actual API endpoint URLs before deployment.
34+
- To create a backup of all project files before starting the deployment process.
35+
- To validate the serverless.yml file for syntax errors..
36+
37+
correct_answer: 2
38+
explanation: >
39+
We used custom prepare.js file to implement the script, which dynamically updated the index.js file with actual API endpoint URLs before deployment.
40+
41+
42+
# ================================================================================
43+
# FIXED, DO NOT MODIFY
44+
# ================================================================================
45+
title: "Review" # Always the same title
46+
weight: 20 # Set to always be larger than the content in this path
47+
layout: "learningpathall" # All files under learning paths have this same wrapper
48+
---

0 commit comments

Comments
 (0)