> For the complete documentation index, see [llms.txt](https://docs.influxtechnology.com/support_guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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-advanced-users.md).

# For Advanced Users

Before proceeding, make sure you have Visual Studio 2022 Installed, and the supporting components are installed as per the .vsconfig file in the link below

{% embed url="<https://itltdgithub.s3.ap-south-1.amazonaws.com/Influx.vsconfig>" %}

* Clone or download the repository

<https://github.com/InfluxTechnology/ReXlibrary/tree/master/Demo/AWS_Lambda>

* Open \Demo\AWS\_Lambda\AWSLambdaFileConvert.csproj
* Provide your credentials with permission to S3 and Lambda for your AWS SDK ([Refer](https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/credentials.html))
* Right-click on the project name and select 'Publish to AWS Lambda…'

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2FwNF3QBFtl83eGoUObywj%2Fimage.png?alt=media&amp;token=7dd76e2c-bb73-4243-84d2-b547279da380" alt=""><figcaption></figcaption></figure>

* Select
  * 'AWS Credential'
  * Choose 'Region' in which you have the S3 Bucket.
  * Enter the 'Description' for the function if required.
  * Leave everything else to default.

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2FKllKBvR10xhdS41P3HKo%2Fimage.png?alt=media&amp;token=07857b4c-20ac-4804-88bb-0f14c48db158" alt=""><figcaption></figcaption></figure>

* Choose an IAM role that provides the Lambda functions necessary permission to access all S3 Services and all Lambda services.

  * If uploading for the first time, ensure 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%2F54LlyiVTNROOswDawFyO%2Fimage.png?alt=media&amp;token=ca25205a-1ba8-4e75-ac67-51f3734673a6" alt=""><figcaption></figcaption></figure>

  * If you have already created a role, you can continue by selecting the existing role.

<figure><img src="https://1612018018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTCRfbN5hBLeUzIaKHbJ7%2Fuploads%2FkSAi0a5u3cSA9riZFIHr%2Fimage.png?alt=media&amp;token=0b71cec8-8007-4c93-ab3b-121876b72ca8" alt=""><figcaption></figcaption></figure>

* Click 'Upload' to Upload the function to AWS.

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)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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-advanced-users.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
