AWS S3

  • Updated

An AWS Identity and Access Management (IAM) user is an entity that you create in AWS to represent the person or application that uses it to interact with AWS. 

A user in AWS consists of a name, credentials and an appropriate access policy. 

The Filespace creation requires an IAM User with Access key ID and Secret access key with appropriate permissions to interact with resources within your AWS account.

Access key creation

1. Login to your AWS Management Console,

2. Within Search, enter IAM,

3. Once within Identity and Access Management (IAM), navigate to IAM Users (recommended use is individual user access keys rather than root access keys as users can be disabled/updated without affecting global account access):

4. Create or manage an existing (in this topic we will 'add user') select Create User,

5. Provide a valid Username and select Next to continue. The user does not need access to the AWS Management Console:

6. Select Attach policies directly and attach a custom policy that only allows access to your Filespace bucket (see IAM User Policy below), then select Next to continue:

7. Review and Create user:

8. Once successful, click on the created user, go to the Security Credentials section and Create access key:

9. Select Third-party service and Next:

10. Save your user security credentials (Access key ID and Secret access key) in a safe place. You can Download .csv file or Show to make visible and click Done once complete.

Once the credentials have been configured, please proceed to the Filespace creation.

Filespace creation

Please login to our Web App or through the desktop application. Click on "Create Filespace":

1 - Create Filespace.png

Enter the name of your Filespace:

2 - Select your FS name.png

Select "Your own storage" and choose AWS:

3 - Select your Storage type.png

Select your cloud storage provider's region and enter the name of the bucket you created for this Filespace. If you leave the bucket name blank, LucidLink will create one automatically, provided the IAM user has CreateBucket permission in their policy:

5 - Enter your bucket name.png

Enter the Access Key and Secret Key generated (see the Access key Generation section):

6 - Enter your public and private key.png

Finally, once you have confirmed all the settings are correct, you can create your Filespace.

7 - Confirm your details.png

Please reach out to LucidLink Support should you encounter any challenges.

Identity and Access Management (IAM) User Policy

An AWS IAM user is an entity that you create in AWS to represent the person or application that uses it to interact with AWS. 

Each IAM user requires a policy providing access to account resources. 

The access keys are used by every device and user that connects to the Filespace, so they should only have access to the Filespace bucket. LucidLink requires PUT, GET, and DELETE Object permissions in that bucket. It does not need LIST permission.

The policy below allows the IAM user to access only one existing bucket. Create the bucket first, then enter its name during Filespace creation.

1. Filespace bucket policy

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:DeleteObject"
            ],
            "Resource": "arn:aws:s3:::<bucket-name>/*"
        }
    ]
}

Our second policy provides an IAM User with the necessary permissions to create a bucket if no bucket name is provided. LucidLink automatically creates a bucket based on a globally unique identifier.

2. IAM User with Create Bucket included in Policy

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:CreateBucket",
                "s3:DeleteObject"
            ],
            "Resource": [
                "*",
                "arn:aws:s3:::*/*"
            ]
        }
    ]
}

2. Create policy steps

1. Go to the Policies section and select Create policy.

2. Select JSON under Policy Editor and copy/paste the policy above into the text editor. Replace <bucket-name> with your actual bucket name, then press Next.

3. Name the policy, review the policy details, ensuring everything is correct and select Create policy.

4. Refresh your policy filter in step 6 of the first section of this article and specify your newly created policy.

Once you have your custom policy assigned and credentials configured, please continue to the Filespace creation section of this article.

Choosing your Amazon S3 storage class

We recommend using the general-purpose, S3 Standard storage class for the objects of your filespace. None of the AWS Glacier classes are supported by LucidLink.

Was this article helpful?

0 out of 0 found this helpful