🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

create-aws-tf-lambda

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-aws-tf-lambda

Generate AWS lambda with Terraform script

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

npm GitHub stars gzip size npm julekgwa Coverage Status

toggle

Installation

npm i create-aws-tf-lambda -g

or

yarn global add create-aws-tf-lambda

Setup AWS Account

  • Create a new user in the IAM Section on AWS here.
  • Select Programmatic access below and enter your user details.

user

  • Click next and select the admin group.

group

  • Continue with the steps until you reach the Create User section and confirm the user has been created. Once the user is created you will get an Access key ID and Secret access key.
  • Open terminal and run $ aws configure. Paste access key id and secret access key from step 4

configure

or create a file called instance.tf with the following code.

provider "aws" {
 access_key = "ACCESS_KEY_HERE"
 secret_key = "SECRET_KEY_HERE"
}

Install terraform

Download Terraform here and follow the guide here on how to install Terraform on your specific system.

Usage

To create a new lambda run the following command

create-aws-tf-lambda

Optional Arguments

ArgumentDescription
-n, --newCreates a new project
-a, --addAdds a new lambda. Use -a sfn to add a step function
-h, --helpPrints the usage guide
-o, --orgMoves all your lambdas to one project [mono project]

License

MIT

Keywords

cli

FAQs

Package last updated on 05 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts