# For Advanced Users

{% 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&#x26;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&#x26;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&#x26;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&#x26;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)
