-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1199 from dawidborycki/LP-Serverless-AWS-S3
LP on Serverless Framework showing how to deploy a static website to S3
- Loading branch information
Showing
8 changed files
with
741 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...earning-paths/servers-and-cloud-computing/serverless-framework-aws-s3/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: Deploy a static website to Amazon S3 and integrate with AWS Lambda and DynamoDB using the Serverless Framework | ||
|
||
minutes_to_complete: 30 | ||
|
||
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. | ||
|
||
learning_objectives: | ||
- Create a multi-resource Serverless Framework solution. | ||
- Automate deployment of a static website to Amazon S3. | ||
|
||
prerequisites: | ||
- 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/). | ||
- Any code editor. [Visual Studio Code for Arm64](https://code.visualstudio.com/docs/?dv=win32arm64user) is suitable. | ||
- Completion of this [Learning Path](/learning-paths/servers-and-cloud-computing/serverless-framework-aws-intro/). | ||
|
||
author_primary: Dawid Borycki | ||
|
||
### Tags | ||
skilllevels: Introductory | ||
subjects: Web | ||
cloud_service_providers: Amazon Web Services | ||
|
||
armips: | ||
- Neoverse | ||
|
||
tools_software_languages: | ||
- Node.js | ||
- Visual Studio Code | ||
|
||
operatingsystems: | ||
- Linux | ||
- Windows | ||
- MacOS | ||
|
||
|
||
### FIXED, DO NOT MODIFY | ||
# ================================================================================ | ||
weight: 1 # _index.md always has weight of 1 to order correctly | ||
layout: "learningpathall" # All files under learning paths have this same wrapper | ||
learning_path_main_page: "yes" # This should be surfaced when looking for related content. Only set for _index.md of learning path content. | ||
--- |
39 changes: 39 additions & 0 deletions
39
...ng-paths/servers-and-cloud-computing/serverless-framework-aws-s3/_next-steps.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
# ================================================================================ | ||
# Edit | ||
# ================================================================================ | ||
|
||
next_step_guidance: > | ||
You can continue learning about migrating applications to Arm. | ||
# 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. | ||
|
||
recommended_path: "/learning-paths/servers-and-cloud-computing/migration/" | ||
# Link to the next learning path being recommended(For example this could be /learning-paths/servers-and-cloud-computing/mongodb). | ||
|
||
|
||
# further_reading links to references related to this path. Can be: | ||
# Manuals for a tool / software mentioned (type: documentation) | ||
# Blog about related topics (type: blog) | ||
# General online references (type: website) | ||
|
||
further_reading: | ||
- resource: | ||
title: Serverless Framework | ||
link: https://www.serverless.com | ||
type: website | ||
- resource: | ||
title: Serverless Framework documentation | ||
link: https://www.serverless.com/framework/docs | ||
type: Documentation | ||
- resource: | ||
title: AWS Lambda | ||
link: https://aws.amazon.com/lambda/ | ||
type: Documentation | ||
|
||
# ================================================================================ | ||
# FIXED, DO NOT MODIFY | ||
# ================================================================================ | ||
weight: 21 # set to always be larger than the content in this path, and one more than 'review' | ||
title: "Next Steps" # Always the same | ||
layout: "learningpathall" # All files under learning paths have this same wrapper | ||
--- |
48 changes: 48 additions & 0 deletions
48
...arning-paths/servers-and-cloud-computing/serverless-framework-aws-s3/_review.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
review: | ||
- questions: | ||
question: > | ||
What is the primary purpose of using the Serverless Framework in your project? | ||
answers: | ||
- To create a manual deployment process for AWS resources. | ||
- To automate the deployment and management of AWS resources using infrastructure as code. | ||
- To manage server operations on local servers. | ||
- To replace AWS services with third-party alternatives. | ||
correct_answer: 2 | ||
explanation: > | ||
Serverless Framework automates the deployment and management of AWS resources using infrastructure as code. | ||
- questions: | ||
question: > | ||
What is the role of the serverless-s3-sync plugin in the deployment process? | ||
answers: | ||
- It synchronizes local files with an S3 bucket during deployment. | ||
- It compiles JavaScript files before deployment. | ||
- It creates new S3 buckets for each deployment stage. | ||
- It compresses files before uploading them to S3. | ||
|
||
correct_answer: 1 | ||
explanation: > | ||
Serverless-s3-sync plugin synchronizes local files with an S3 bucket during deployment. | ||
- questions: | ||
question: > | ||
What was the purpose of using the prepare script in your serverless project? | ||
answers: | ||
- To compile all source files before deploying them to AWS. | ||
- To dynamically update the index.js file with actual API endpoint URLs before deployment. | ||
- To create a backup of all project files before starting the deployment process. | ||
- To validate the serverless.yml file for syntax errors.. | ||
|
||
correct_answer: 2 | ||
explanation: > | ||
We used custom prepare.js file to implement the script, which dynamically updated the index.js file with actual API endpoint URLs before deployment. | ||
# ================================================================================ | ||
# FIXED, DO NOT MODIFY | ||
# ================================================================================ | ||
title: "Review" # Always the same title | ||
weight: 20 # Set to always be larger than the content in this path | ||
layout: "learningpathall" # All files under learning paths have this same wrapper | ||
--- |
Oops, something went wrong.