For the functionality to be performed online, Lambda provides a great resource for executing code. Lambdas are serverless, which means there's on server configuration which means no maintenance. Lambdas are spawned as processes whenever they are called. The more calls, the more processes, so it's easily scaled.
- [Instructor] So now we're going to update our code…in the Cloud9 IDE to fetch data for a given user.…So I'm going to delete all the code that's in here…and replace it with this code that I've provided for you…in Chapter five, video three, snippet.txt.…You'll find that in your exercise files…so I'll paste that in here.…Now if we step through this code, we see that…it's looking for a body being passed in…and then within that body, a user ID.…Next, it's going to open up a database table…and we have to get that database table information here.…
And then it's going to create a query,…and then it's going to cycle through the items…and create the JSON to return back in the body.…So we need to get our table name.…So let's go back to services and go to the DynamoDB.…Let's look for our table and here it is.…So let's copy this out and put it in our code,…and we'll save that.…Now we want to test this code by passing in…something reasonable for the test data.…
So I'm going to pass in the body, just like it's expecting,…and I'll have the value for body as a string…
Author
Released
11/9/2018- Setting up an AWS account and console
- Configuring an app for user authentication
- Migrating a database to AWS
- Retaining a local SQLite database
- Moving app data storage online
- Displaying server data in app
- Controlling app revisions
- Managing builds and deployments
- Integrating dev environments
- Migrating iOS app functionality to the cloud
- Connecting online via APIs
Skill Level Beginner
Duration
Views
Related Courses
-
Amazon Web Services: Data Security
with Lynn Langit3h 46m Intermediate -
AWS API Gateway with HTTP, Lambda, DynamoDB, and iOS
with Bear Cahill1h 33m Intermediate -
Amazon Web Services: Enterprise Security
with Sharif Nijim2h 7m Intermediate
-
Introduction
-
1. AWS Migration Resources
-
AWS account and pricing2m 4s
-
AWS Console and services1m 22s
-
CodeStar3m 6s
-
Cloud9 and Lambda2m 7s
-
DynamoDB and online data2m 19s
-
-
2. User Authentication
-
User authentication3m 17s
-
3. Migrating Data to the Cloud
-
Migrating a database to AWS3m 41s
-
Updates to the database4m 10s
-
Display server data in app3m 39s
-
-
4. Managing the Migration Process
-
CodePipeline for deployment1m 26s
-
5. Functional Cloud Migration
-
Writing a Lambda function2m 23s
-
API to online functionality3m 47s
-
Updating the app5m 29s
-
Conclusion
-
Clean up1m 39s
-
Next steps51s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Writing a Lambda function