/
Accessing files in S3

Accessing files in S3

The content S3 bucket associated with your application identifier can contain drawing files you can access by passing its S3 file key to the “file” query parameter. The S3 file key is just the relative path of the file inside the bucket. As it is passed in a query parameter you have to make sure that it is url encoded.

So if drawing file in the bucket is located at “test.dwg”, “file” parameter will be just “test.dwg”. If it is located at “test/test.dwg”, “file” parameter will be “test%2Ftest.dwg”.

Note:: ACLs are recommended to be disabled on the bucket

To open a file from the S3 bucket with Kudo, you need to make sure that Kudo has at least read access to it. This will be sufficient if you use Kudo only as a viewer. If you use Kudo in edit mode, it will also require write access.

To allow s3 bucket access to Kudo, put a bucket policy on the partner s3 bucket allowing the desired actions to Kudo account : 649336859113

{ "Version": "2012-10-17", "Statement": [ { "Sid": "PermissionsforKudoAccount", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::649336859113:root" ] }, "Action": [ "s3:PutObject", "s3:GetObject" ], "Resource": [ "arn:aws:s3:::kudo-demo-content", "arn:aws:s3:::kudo-demo-content/*" ] } ] }

 

Related content

Onboarding ARES Kudo hosted by Graebert
Onboarding ARES Kudo hosted by Graebert
More like this
Accessing the customization files in S3
Accessing the customization files in S3
Read with this
Process to request token
Process to request token
More like this
Token Authentication
Read with this
ARES Kudo Script jobs
ARES Kudo Script jobs
More like this
ARES Kudo server Windows setup
ARES Kudo server Windows setup
Read with this