VOOZH about

URL: https://www.javacodegeeks.com/2016/06/configuring-amazon-web-services-aws-using-lambda.html

โ‡ฑ Configuring Amazon Web Services (AWS) for using Lambda - Java Code Geeks


During the Software Craftsmanship and Testing conference UK, Mash run a session on AWS Lambda, with examples written in Java and python. Some other people also tried to do it in NodeJS. This session is here

The first part, mostly accidental complexity, is how to setup the account to be able to use these services. This is the part that most people struggled with, so here is a step-by-step guide.

Setting up your payment method

  1. Connect to the AWS Console๐Ÿ‘ aws-01
  2. Click on your name (top right), then โ€˜My Accountโ€™๐Ÿ‘ aws-payment-1
  3. On the left menu, click โ€˜Payment Methodsโ€™๐Ÿ‘ aws-payment-2
  4. Add a debit/credit card. This is very important, as you could go over the free tier and they would need to charge you. But with the levels of activity that weโ€™ll be using, you are included in the free tier๐Ÿ‘ aws-payment-3

Setting up your AWS account

  1. Connect to the AWS Console๐Ÿ‘ aws-01
  2. Go to Services, choose IAM๐Ÿ‘ aws-02
  3. Create a โ€˜groupโ€™, to hold these users and policies๐Ÿ‘ aws-03
  4. Click โ€˜Create a new groupโ€™๐Ÿ‘ aws-04
  5. Pick a name for the group๐Ÿ‘ aws-05
  6. Click next, choose these policies:
    • AWSLambdaFullAccess
    • IAMFullAccess
    • AmazonAPIGatewayAdministrator

    ๐Ÿ‘ aws-06

  7. Next. See this page:๐Ÿ‘ aws-07
  8. Click Create group๐Ÿ‘ aws-08
  9. Find your new group๐Ÿ‘ aws-09
  10. Click on โ€˜Usersโ€™ tab. It wonโ€™t have any users, as you just created it.๐Ÿ‘ aws-10
  11. Create new users: go to the menu on the left โ€˜Usersโ€™, click the button โ€˜Create new usersโ€™๐Ÿ‘ aws-11
  12. You need to generate as many users as you want. For a test, with one is enough. Pick a name for those users. In my case, โ€˜test1โ€˜ โ€˜and test2โ€˜. Select โ€˜Generate an access key for each userโ€™๐Ÿ‘ aws-12
  13. Click โ€˜Show User Security Credentialsโ€™, to see the credentials. Youโ€™ll use those to authenticate against AWS.๐Ÿ‘ aws-13
  14. In any case, itโ€™s better to download the credentials๐Ÿ‘ aws-14
  15. A CSV with the tokens๐Ÿ‘ aws-15
  16. Go to Groups, again๐Ÿ‘ aws-16
  17. Click โ€˜usersโ€™ tab, then โ€˜Add users to this groupโ€™๐Ÿ‘ aws-17
  18. Find or filter the users that you want๐Ÿ‘ aws-18
  19. Select them๐Ÿ‘ aws-19
  20. Click โ€˜Add Usersโ€™๐Ÿ‘ aws-20

Installing and configuring the AWS CLI

  1. Find the installer at AWS CLI
  2. Configure it, with this help page
    • A sample of that
    $ aws configure
    AWS Access Key ID [****************TEST]: ##$YOUR_ACCESS_KEY##
    AWS Secret Access Key [****************TEST]: ##$YOUR_SECRET_ACCES_KEY##
    Default region name [eu-west-1]: eu-west-1 #or any other zone
    Default output format [None]: #just type enter
  3. Check that the CLI is correctly configured:
    $ aws lambda list-functions
    {
     "Functions": []
    }
  4. You can use the services. The series continue at the next post
Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

๐Ÿ‘ Photo of Alvaro Garcia
Alvaro Garcia
June 13th, 2016Last Updated: June 12th, 2016
0 163 2 minutes read

Alvaro Garcia

Alvaro is a software developer who firmly believes in the eXtreme Programming methodology. He's embarked on a lifelong learning process and is now in a symbiotic exchange process with the Barcelona Software Craftsmanship meetup, where he is a co-organizer.He enjoys reading and reviewing technology books, providing feedback to the author whenever possible, to create the best experience for the final reader.Alvaro has been working in the IT industry for product companies, consulting firms and as a freelancer since 2005.
Subscribe

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Back to top button
Close
wpDiscuz