1.1.0 • Published 2 years ago

create-aws-tf-lambda v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

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

    user

  3. Click next and select the admin group.

    group

  4. 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.

  5. 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