DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Configuring AWS for Using Lambda

Configuring AWS for Using Lambda

At a recent conference, it was discovered that one of the hardest parts of using AWS Lambda was getting it set up. Here's a step-by-step guide of how to do it.

Alvaro Garcia user avatar by
Alvaro Garcia
·
Jun. 13, 16 · Tutorial
Like (2)
Save
Tweet
Share
2.32K Views

Join the DZone community and get the full member experience.

Join For Free

During the Software Craftsmanship and Testing Conference UK, Mash ran a session on AWS Lambda with examples written in Java and Python. Some other people also tried to do it in Node.js. The 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.

  2. Click on your name (top right), then "My Account."

  3. On the left menu, click "Payment Methods."

  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.

Setting Up Your AWS Account

  1. Connect to the AWS Console.
  2. Go to Services, choose IAM.

  3. Create a "group" to hold these users and policies.

  4. Click "Create a new group."

  5. Pick a name for the group.
  6. Click next, choose these policies:
    • AWSLambdaFullAccess
    • IAMFullAccess
    • AmazonAPIGatewayAdministrator
  7. Next. See this page:
  8. Click "Create group."

  9. Find your new group.

  10. Click on the "Users" tab. It won't have any users, as you just created it.

  11. To create new users, go to the menu on the left, select "Users" and click the button "Create new users."

  12. You can generate as many users as you want. For a test, one is enough. Pick a name for those users. In my case, "test1_" and "test2_." Then check off "Generate an access key for each user."
  13. Click "Show User Security Credentials" to see the credentials. You'll use those to authenticate against AWS.
  14. In any case, it's better to download the credentials.
  15. Create a CSV with the tokens.
  16. Go to Groups again.
  17. Click the "users" tab, then "Add users to this group."

  18. Find or filter the users that you want, then select them.
  19. Click "Add Users."

Installing and Configuring the AWS CLI

  1. Find the installer at AWS CLI
  2. Configure it with this help page. Here's a sample of how it might look:
  3. $ 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

  4. Check that the CLI is correctly configured:
    $ aws lambda list-functions
    {
        "Functions": []
    }

  5. You can now use the services. The series continue at the next post.

This article was first published on the Codurance blog.


Related Refcard: Getting Started With Cloud Computing

AWS

Published at DZone with permission of Alvaro Garcia, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Front-End Troubleshooting Using OpenTelemetry
  • Testing Repository Adapters With Hexagonal Architecture
  • Understanding and Solving the AWS Lambda Cold Start Problem
  • Building the Next-Generation Data Lakehouse: 10X Performance

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: