Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Example url from our https://graebert.atlassian.net/wiki/spaces/KUDOPARTNER/pages/1183154352/Samples#2.-Open-file-for-editing-from-S3-bucket-with-customized-style : https://app.kudo.graebert.com/editor?file=demo3.dwg&auth=demo3&userId=demouserSo 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.

...

Code Block
{
    "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/*"
            ]
        }

   ] }

We will need to add an IAM policy to xenon EC2 roles to allow operations on the bucket

Code Block
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "PermissionsForCustomerContentBucket",
            "Effect": "Allow",
            "Action": "s3:*",
            "Resource": [
                "arn:aws:s3:::kudo-demo-content",
                "arn:aws:s3:::kudo-demo-content/*"
            ]
        }
    ]
}