Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.7 KB

File metadata and controls

46 lines (39 loc) · 1.7 KB

Aufbau des Beispiels über die AWS Console

Dieser Abschnitt beschreibt den manuellen Aufbau über die AWS Console. Die einzelnen Schritte sind analog zu den in der Livedemo durchgeführten Abläufen.

IAM

  1. Search for AWS-IAM Service

  2. Click on „Roles“

  3. Click on „create role“

  4. Trusted entity is „AWS Service“

  5. Use cases ist Lambda

  6. Click on Next:Permissions

  7. Search for „AWSLambdaBasicExecutionRole“ an click in the Checkbox. After that click on „Next: Tags“

  8. Click on „Next: Review

  9. Set your Role Name(HelloWorldLambda) an Click „Create role“

Lambda

  1. Search for AWS-IAM Lambda

  2. Click on Create Functions

  3. Set Funktion namen (Hello World)

  4. Set Runtime(Node.js 14.x vorbelegt)

  5. Permissions → Change default execution role. click on „use an existing role“ and select the Icreated IAM role(HelloWorldLambda)

  6. Click on „Create funktion“

APi-Gateway:

  1. Search for AWS-API Gateway Service

  2. Click on Create API

  3. Build a Rest API

  4. Set a API name and add optional a Description

  5. Click on Create API

  6. Click on Resources

  7. Click on Actions and select „create Methode“

  8. Select the HTTP Methode „GET“ an click on the chop

  9. Select the Use Lambda Proxy integration

  10. Search your Lambda Funktion what they habe created and click on Save

  11. Click OK

  12. if you want to add a query parameter click on "Method Request" and then on „URL Query String Parameters“.

  13. Click on Add query string

  14. enter the name and confirm it with the checkmark

  15. if you want to access the API from outside click on „Resources„ then on „Actions“ and select Deploy API.

  16. Click on Deployment stage "New Stage“

  17. Set a stage name (dev) and you can add optional descriptions

  18. click on Deploy