June 03, 2018
Steve Kinney
Using AWS Mobile Hub for this course
Create Users/ sub admin users in IAM (Identity and Access Management)
Created a new user MobileHub-FEM
Permission Set
AWS Mobile Hub
Abstraction over Authentication, Authorization, dynamo DB, Cognito, Pinpoint.
Marketed as best suited for mobile but good enough for web developers as well.
Targets - Swift, Android, React Native, React web
npm install -g awsmobile-cli
AWS Amplify
mobile hub
and also has aws-amplify-react
which includes HOC helpersmobile hub
project init, amplify is installed. If it is react, then aws-amplify-react
is also installed.AWS Appsync
Authentication(Cognito)
Storage(S3)
Serverless Functions (Lambda && API gateway)
Database (DynamoDB)
Hosting(S3 and Cloudfront)
Analytics and Notifications(Pinpoint) - tracks user actions (only available at US East1)
Most datacenters have all the services but sometimes just a subset
github:
> awsmobile configure (after installing awsmobile-cli)
use credentials.csv
file to fill up info. US-east-1 is a safe bet for aws region
aws mobile init
If confirmation just needs yes for all answers, use -y
flag.
eg. npm init -y will create a package.json with default settings
awsmobile/backend
is the backend codebase for settings in aws. Do not change anything elseawsmobile
will also create a aws-exports
file in project. Use aws-amplify
to hook the configuration to react.after connecting configuration, awsmobile push
to send code updates to backend. Use awsmobile features
to modify usage of features, then push again to awsmobile.
Never send any of the aws code/ configruation to github. Add all the files in gitignore
awsmobile
will show a list of features we can enable from the cliuser-signin
module.awsmobile user-signin enable —prompt
awsmobile push
then awsmobile console
will open an url to checkout the project backend setup. Any changes from the console UI can be updated on the codebase with a awsmobile pull
In Progress end time: 1:41:1 ( Start with creating a database)
Written by Venkat Ganesan who is in San Francisco now, moving to Toronto. I love building things.Follow me on Twitter