AWS S3 Bucket Integration With ChatNet

Account Setup on AWS

Bucket Creation

Setting Bucket Policy

The next step is to modify the bucket policy to allow public access. You can do this by adding a new statement to the policy that grants the “s3:GetObject” permission to everyone.

{    "Version": "2012-10-17",    "Statement": [        {            "Sid": "PublicRead",            "Effect": "Allow",            "Principal": "*",            "Action": [                "s3:GetObject",                "s3:GetObjectVersion"            ],            "Resource": "arn:aws:s3:::cnmedia2/*"        }    ]}

Creating an IAM User

Now the bucket creation process is done, next we need to assign a user to this bucket and get Access Key ID and Secret Access Key . To do this, follow the bellow steps.

Now we need to generate Access Key ID and Secret Access Key. to do this go to newly created user by clicking on the name.


Configuring ChatNet

Now head over to ChatNet dashboard and go to Settings > Cloud Storage section.

Uploading Media Files to AWS S3 Bucket

After configuring AWS S3 with ChatNet, the next important step is to upload all existing media files from your ChatNet /media folder to the S3 bucket.