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
- Connect to the AWS Console๐ aws-01
- Click on your name (top right), then โMy Accountโ๐ aws-payment-1
- On the left menu, click โPayment Methodsโ๐ aws-payment-2
- 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
- Connect to the AWS Console๐ aws-01
- Go to Services, choose IAM๐ aws-02
- Create a โgroupโ, to hold these users and policies๐ aws-03
- Click โCreate a new groupโ๐ aws-04
- Pick a name for the group๐ aws-05
- Click next, choose these policies:
- AWSLambdaFullAccess
- IAMFullAccess
- AmazonAPIGatewayAdministrator
- Next. See this page:๐ aws-07
- Click Create group๐ aws-08
- Find your new group๐ aws-09
- Click on โUsersโ tab. It wonโt have any users, as you just created it.๐ aws-10
- Create new users: go to the menu on the left โUsersโ, click the button โCreate new usersโ๐ aws-11
- 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
- Click โShow User Security Credentialsโ, to see the credentials. Youโll use those to authenticate against AWS.๐ aws-13
- In any case, itโs better to download the credentials๐ aws-14
- A CSV with the tokens๐ aws-15
- Go to Groups, again๐ aws-16
- Click โusersโ tab, then โAdd users to this groupโ๐ aws-17
- Find or filter the users that you want๐ aws-18
- Select them๐ aws-19
- Click โAdd Usersโ๐ aws-20
Installing and configuring the AWS CLI
- Find the installer at AWS CLI
- 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
- Check that the CLI is correctly configured:
$ aws lambda list-functions { "Functions": [] } - You can use the services. The series continue at the next post
| Reference: | Configuring Amazon Web Services (AWS) for using Lambda from our JCG partner Alvaro Garcia at the Crafted Software blog. |
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.
Tags
Amazon AWS
๐ Photo of Alvaro Garcia
Alvaro GarciaJune 13th, 2016Last Updated: June 12th, 2016
Alvaro GarciaJune 13th, 2016Last Updated: June 12th, 2016
0 163 2 minutes read

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