Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-workshop

Code examples for workshop

Creating users

Use script user-management/users.sh to create several users for workshop based on list in trainee.list file

user-management/users.sh create_users

Know issues:

  • last user in the list might not be created properly (probably due to EOL symbols or something)

Testing endpoint

Once participant provided a link to his API endpoint, use lambda-node-js/tests/test-api.js file to test it Make sure to set mocha timeout: --timeout 10000

AWS clean up

Remove checklist:

  • ec2 instances
  • dynamoDb tables
  • api gateway routes

AWS API Gateway allows only one removal per minute, which makes cleaning up after workshop a bit difficult.

Use aws-clean-up/index.js to remove all apis and dynamodb tables created in all regions.

Cloudformation

All-in-one

cd cloudformation ./run-cf.sh redeploy - delete stack if exists (if doesn't - show some error in log), upload lambda code to S3 bucket (has to be created beforehand), creates stack and prints out the endpoint url. Runs basic api test

Known issue: sometimes during the packaging lambda and generating template, some log lines getting added into template. In result the stack creation step fails. Remove these lines manually and restart command.

Individual commands

./run-cf.sh package-lambda - package lambda in zip and push to S3. result is generated CF template in cloudformation/build folder with link to S3 ./run-cf.sh create-stack - create stack with CF template generated in prev step ./run-cf.sh delete-stack - delete stack

About

Code examples for workshop

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages