Fortinet Document Library

Version:


Table of Contents

AWS Cookbook

Resources

Upgrade Path Tool

AWS Cookbook

6.2.0
Download PDF
Copy Link

Preparing the deployment package

When you have all prerequisites ready, you can continue the installation as below. The commands in each steps are intended to run in Terminal or Git Bash only.

You must create a deployment package from the local Git project repository, which will be uploaded for the Lambda function creation in a later step.

To prepare the deployment package:
  1. Clone this project into the "guardduty" folder in your current local directory, and enter the project directory:

    $ git clone https://github.com/fortinet/aws-lambda-guardduty.git guardduty

    $ cd guardduty

  2. Install project dependencies:

    $ npm install

  3. Build this project locally to create a deployment package .zip file. The file will be located in ./dist/aws_lambda_guardduty.zip:

    $ npm run build

Resources

Preparing the deployment package

When you have all prerequisites ready, you can continue the installation as below. The commands in each steps are intended to run in Terminal or Git Bash only.

You must create a deployment package from the local Git project repository, which will be uploaded for the Lambda function creation in a later step.

To prepare the deployment package:
  1. Clone this project into the "guardduty" folder in your current local directory, and enter the project directory:

    $ git clone https://github.com/fortinet/aws-lambda-guardduty.git guardduty

    $ cd guardduty

  2. Install project dependencies:

    $ npm install

  3. Build this project locally to create a deployment package .zip file. The file will be located in ./dist/aws_lambda_guardduty.zip:

    $ npm run build