# For Beginners

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

<figure><img src="/files/x1ahYpb6Xzo6HkZz8skh" 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="/files/bI7bjNVerbVmYGRijzwX" 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="/files/cwk764FFDtuWdWyCkI9m" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/FrlzbHt2hv1wrxDV97WD" alt=""><figcaption></figcaption></figure>

* Click 'Upload'.

<figure><img src="/files/OC5MGeUPr9sekcHZELRT" 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="/files/AbZUuRZ3lGCGH70CJN9t" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/tA0nFnM5k4ZDvXVht8e7" 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="/files/e4fI7jVT4f07pSsWbdiN" 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="/files/ac7Ro5YDWcZtv0s3gVp5" 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="/files/QRWVmLQePJrSpGTJixhA" 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.influxtechnology.com/support_guides/rexgen-series-product-manuals/rexgen-air-cloud-usage-guides/cloud-usage-guides-for-rexgen-air-device/deploying-lambda-function-to-aws/for-beginners.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
