Skip to content

Latest commit

 

History

History
110 lines (76 loc) · 4.76 KB

20180220_SGCIB_AWS-serverless-workshop.adoc

File metadata and controls

110 lines (76 loc) · 4.76 KB

AWS Serverless workshop - Wild Rydes Takes Off

Table of Contents

Workshop given by Amadou Merico & François Oblin ([email protected]), of AWS.
François is also currently working at SGCIB.

Overview

Global underlying theme: Wild Rydes Serverless Workshops - promote the fly with unicorns!

This whole serverless workshop is described in GitHub, see: https://github.com/awslabs/aws-serverless-workshops/

It is composed of 5 parts:

During this 3 hours coding games, we will only have a look at the 1st part, the Web Application

It is itself composed of 4 parts:

Those last imply the use of the following components:

  • Amazon Lambda

  • Amazon DynamoDB

  • Amazon API Gateway

  • Amazon Cognito: for user authentification

  • Amazon S3: to host the static resources of the site (everything that is not executed server side: HTML, CSS, Javascript, etc.)
    S3 is somehow the "datalake" of Amazon

  • Amazon IAM: for autorisations

Workshop

First, we lost time having issues with the temporary, pre-configured, AWS accounts for the workshop, but then, everything was fine.

Temporary connection ID for AWS : 19

Connection process:

  • AccountID: 001378298471

  • VDI_USER: 001378298471

  • VDI_PASS: xxx

  • AWS_USER: yyy

→ Does not work

For external desktop, the connection to our pre-configured AWS accounts has to be done through https://aws.amazon.com/fr/ ("classic" way)

Test with 3rd ID given OK : 043876642695 new MDP : TestAWS

CloudFormation for Infra As A Code to win some time and automatically perform all steps actions.

  • Pool Id: us-east-2_29iesPhXa
    App client ID: 4qr027om263r1pp99vmehd5bnc

  • [email protected]
    Test123!

  • auth_token:
    eyJraWQiOiI0bE5uZlhaUW95TitxeFRMSG5kRElSRm1uNWJXOTgxVWpGN0dyd2c4MjVNPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIzNDdjOWNhMC1lMTk1LTRiYzAtOTc3YS05MzEzYzEyZGU2MjAiLCJhdWQiOiI0cXIwMjdvbTI2M3IxcHA5OXZtZWhkNWJuYyIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwiZXZlbnRfaWQiOiIzZWFiZTRhYy0xNjRmLTExZTgtODE3ZS1kZmM3MjJmYWJiNTEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTUxOTEzOTAyNCwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMi5hbWF6b25hd3MuY29tXC91cy1lYXN0LTJfMjlpZXNQaFhhIiwiY29nbml0bzp1c2VybmFtZSI6ImZha2UtYXQtc2djaWIuY29tIiwiZXhwIjoxNTE5MTQyNjI0LCJpYXQiOjE1MTkxMzkwMjQsImVtYWlsIjoiZmFrZUBzZ2NpYi5jb20ifQ.MJNGfHMS59qBVS3zscA32VT1PuQJ-eep6QcgYdECI_7oSFtLuZDj397cGBioi9PxCQ5tvnCO7YXq72BQiOCRFjMBoKSZdN1IBYmQOQM5TGNmxRl7WspwC8nWBsfgIMym0ZEVgTUGUwrlZRq0pMZ4VLBC5D6la0g2Dh_sIP8XbeX0OVoAky83Zyqi7X3C6R4T5v68knazZUAEq_kMY_XhrmDjg6kBwfWIJEEmiqmSneWPtmCm9ND6bqdjYsOGHsKWjOcSGBMke6W1RzsGFKANpS89Wekbb0vGRaNZd182vCUpIKJA5QsHIFEBJfKj50Ntu1bRZZE8uJ4cPK8ecY8SGA

Amazon Resource Name (ARN): arn:aws:dynamodb:us-east-2:043876642695:table/Rides

All tests OK up to part IV, RESTFul APIs.
Web Application module working!

Conclusion

Except for the first technical issues with the AWS preconfigured accounts, it was a very good workshop, that could be also be done at home (using the GitHub repo).

Several AWS components used, with a real, effective, application created at the end.