# For Beginners

* Login to your AWS portal and go to Lambda Services.
* Click on 'Create Function'.

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2FmuiSKqGDQn7G8p0a5CYI%2Fimage.png?alt=media&#x26;token=6dde2958-dbf3-4c1b-88e8-fdd466e54dfb" alt=""><figcaption></figcaption></figure>

* Once in the 'Create Function' window:
  * Select 'Author from scratch.
  * In Basic information:
    * Define function name.
    * Select Runtime as '.NET 8 (C#/F#/PowerShell) (from the drop-down options).
    * Select Architecture, x86\_64 (from the given options).
  * In Permissions, Change the default execution role:

    * If you are uploading for the first time, make sure you have created an IAM role with the following permissions; refer to the [link](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-service.html#roles-creatingrole-service-console)

    <figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2FGKWrjhl76GWZTB11hRMh%2Fimage.png?alt=media&#x26;token=e0019384-47d7-44c7-ac97-9abcd8738bd4" alt=""><figcaption></figcaption></figure>

    * If you have already created a role, you can continue by selecting the existing role.
      * Select 'Use an existing role'.
      * Select the Existing role as 'influx\_lambda\_role' from the drop-down options.
* Select 'Create function'.

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2Fkl3e8XhHpB0z5S6Le49E%2Fimage.png?alt=media&#x26;token=9c0e9384-3c66-4dc7-af22-1668097ffcf8" alt=""><figcaption></figcaption></figure>

* Once the function is created, click on 'Upload from'.

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2F9LlG5ic7yBYSkayL3SMN%2Fimage.png?alt=media&#x26;token=33596e59-89d4-471e-8e0d-fa355efd4095" alt=""><figcaption></figcaption></figure>

* Click 'Upload'.

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2Fa7XMWV6DRAMYD4R4a4Nm%2Fimage.png?alt=media&#x26;token=9c74deed-ef46-4946-95d9-d25e831a55b5" alt=""><figcaption></figcaption></figure>

* Select the function code's zip file, and click 'Open'.

[<mark style="color:blue;">Link to the Zip file</mark>](https://itltdgithub.s3.ap-south-1.amazonaws.com/Lambda_Function_General/Lambda_Function_Gen_V10.zip)

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2FFCOBxxE9UIf4FwrfgQPB%2Fimage.png?alt=media&#x26;token=4800f90c-3419-4521-8f3c-b14f15f099de" alt=""><figcaption></figcaption></figure>

* Once the zip file is uploaded, click 'Save'.

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2F5lxvaVmvXDIDA9ykD3Ga%2Fimage.png?alt=media&#x26;token=3ff9152b-4665-4602-a2a0-ab2b58bedf12" alt=""><figcaption></figcaption></figure>

* Once on the function window, under the 'Code' tab, locate 'Runtime settings' and click 'Edit' if you wish to edit any credentials.

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2FKQCWpnLQyY6RsUA6iQw7%2Fimage.png?alt=media&#x26;token=3b5805e9-e4d6-43dc-b802-201684380716" alt=""><figcaption></figcaption></figure>

* In Runtime settings:
  * Select Runtime as .NET 8 (C#/PowerShell)
  * Change handler to AWSLambdaFileConvert::AWSLambdaConvert.Function::ConvertFiles
  * Close Architecture
  * Click 'Save'
  * Chose Architecture.
  * Click 'Save'.

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2FvsgwmURJURL99I0KmtfK%2Fimage.png?alt=media&#x26;token=b73ba38f-3493-4792-986e-a6725579ecec" alt=""><figcaption></figcaption></figure>

* To edit the general configuration, click' Configuration' and select' Edit'.

  * As desired, edit details such as memory, ephemeral (temporary) storage, and time out.

  <figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2FaF4mb4ydAXCmk273ChlK%2Fimage.png?alt=media&#x26;token=3c616c63-8ac9-4dac-9ee2-ae99a40b8b26" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

#### Note:

* These parameters may change depending on the DBC use, for example, the size of the DBC, etc.
  {% endhint %}

Continue to[ <mark style="color:blue;">Adding S3 Trigger for Lambda</mark>](https://docs.influxtechnology.com/rexgen-series-product-manuals/aws-s3-rexgen-air/deploying-lambda-function-to-aws/adding-s3-trigger-for-lambda) &#x20;
