Using Amazon S3 as a document pool in QuarkXPress Server
This section describes the steps necessary to use Amazon S3 as a docpool in QuarkXPress Server.
Create an S3 bucket in AWS
To create an S3 bucket in AWS:
-
Log on to the AWS Console using a valid account and user.
-
On the AWS Management Console, under Storage, click S3.
-
Click Create bucket.
-
On the Name and Region pane, specify the bucket name and an appropriate region, and click Next.
-
On the Configure Options pane, DO NOT CHECK Keep all versions of an object in the same bucket, and click Next.
This is mandatory as QuarkXPress Server uses S3 as temporary storage and does not require versioning. -
On the Set permissions pane, block all public access to this bucket, and click Next.
-
On the Review pane, review your selections and click Create bucket.
-
Select the newly created bucket and click Create Folder.
-
Create a "qxpsdocpool" folder inside the bucket which will be used as document folder.
Optionally an appropriate server-side encryption can be chosen for data at rest.
Create a policy
The following are the set of S3 bucket permissions required by QuarkXPress Server:
-
s3:PutObject
-
s3:GetObject
-
s3:ListBucket
-
s3:DeleteObject
Create a policy and assign the S3 bucket permissions to the EC2 instance where QuarkXPress Server is running.
To create a policy and assign the permissions:
-
On the AWS Management Console, under Security, Identity, & Compliance, click IAM
-
Select Policies from the Dashboard menu.
-
Click Create policy.
-
Select the JSON tab and create the policy using the following json:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:ListBucket",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::quarkxpresssever-test",
"arn:aws:s3:::quarkxpresssever-test/qxpsdocpool/*"
]
}
]
}
-
On the Review policy pane, provide an appropriate Name and Description and click Create policy.
-
You can also create the policy using the Visual Editor also as shown below:
Create a role
Create a role and assign your newly created policy to this role:
-
Select Roles from the Dashboard menu.
-
Click Create role.
-
Click AWS service and select EC2 as the service that will use this role.
-
Click Next: Permissions.
-
Under Attach permissions policies, select the policy you have created in the previous step.
-
Click Next: Tags.
-
Click Next: Review.
-
On the Review pane, provide a Role name, review your selections and click Create role.
Assign role to EC2 instance
If you created a role using the instructions in the previous section, attach that role to the QuarkXPress Server's Platform EC2 instance:
Register Amazon S3 as a Docpool in QuarkXPress Server
-
Open QuarkXPress Server's web-based Admin UI.
-
Go to Administration > Preferences > General.
-
In the Document Root Folder, specify the docpool URL:
s3://ap-south-1.amazonaws.com/QXPS-Bucket/qxpsdocpool/
http://localhost:8080/setprefs?DocumentRootFolder=s3://ap-south-1.amazonaws.com/QXPS-Bucket/qxpsdocpool/