How to share AWS S3 files and folders with external users using NirvaShare

Sharing a file or folder with external users is one of the common use cases across industries for business purposes. When it comes to files in S3, it brings up challenges with respect to security aspects such as granting proper access to users, authentication and authorization. With NirvaShare, it is pretty easy to configure and share files with just a few clicks. In this document, we will look at how to configure NirvaShare with AWS S3 storage and share files to external users using a simple Form-based authentication.



In this blog, we will try to install NirvaShare using the CloudFormation YAML script and get the service up in a couple of minutes.


NirvaShare can be installed directly from AWS Marketplace  and after the installation is completed proceed further with this documentation.

Alternatively, you can also install manually using CloudFormation and for more information, refer to Installation Using CloudFormation

Verifying Installation

After installation is completed, wait for 3-4 minutes for server to come up as it takes time to create schema, etc.

Access the url as http://(your EC2 Public IP):8080

This should open up login screen as shown below. Before you could login, let us prepare for configuration.


IAM Role

To configure further, you will require an IAM role that can be assigned to EC2 instance to access S3 storage. To create a new IAM role follow below steps.

  • Open IAM service or go to URL
  • From the left menu, click on Roles and create a new role.
  • Select AWS Service and EC2 for use case.


  • For the Permissions policies select AmazonS3FullAccess and click on Next.
  • Provide a role name and create it. With this a new role is created that have full access to S3 storage.


  • Let us assign the newly created role to NirvaShare EC2 instance.
  • Go to the EC2 services and select the NirvaShare instance.
  • From the Action menu, select Modify IAM Role as shown below.


  • Select the newly created role and save it.


With the installation being ready, the next step is to configure NirvaShare to point to your S3 Object Storage and share file/folder using a Form-based authentication.

Assuming, deployment was successful, please open the Admin Console URL  -> http://(your ip):8080


Login to admin console with  username as admin and password as your EC2 instance id . It is advisable to change the password after your first login. To change the password, please refer to the documentation Change Password. You can also create more than one admin user under Delegated Admin tab given full access to reset another admin user password. To reset forgotten password refer to Password Reset.

NOTE: Please note that the default in-built user store does not support password reset functionality for AdminConsole. For a proper production deployment, you can integrate with any of your identity stores such as IAM Identity Center, keycloak, Active Directory, etc for better password management policy.

  • After login into the application, click on Settings at the left menu tab.
  • Click on edit File Storage, select a storage type as AWS S3 and enable the checkbox for Use AWS IAM Role
  • Save it.
  • Go to the next section, edit User Application URL and provide the user application URL as http://(instance ip):8081, and save it.
    Note – During production use, a proper domain with HTTPS is required here.
  • Other settings such as email, audit, etc can be configured later and is optional for now. For more detail, refer to Settings

File Sharing with Form based Authentication

To Share a folder with form based Authentication, please refer to Setup Form based Authentication.

To setup SSL on to the server, refer to AWS documentation

SSO Integrations

For SSO integrations, please refer to Documentation related to AWS.

setting aws s3 storage settings

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.