Versions Compared

Key

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

Atlassian Approved for Confluence Data Center on 2019-09-20

Simple app that helps Helps to Store, manage, versioning and centralize space or project related files or documents on Amazon AWS S3 bucket.

...

  • Beside Upload, Option to attach and detach existing AWS S3 documents Files on Confluence.

  • Helps Documents Files Versioning in AWS S3 bucket

  • Provides Macros

    • Amazon S3 Files Summary {amazon-s3-files-summary}

    • Amazon S3 File Link {amazon-s3-file-link}

  • Space S3 Documents REST API

Status
colourBlue
titleQuick Start Steps

Note.

Info

If your upgrading from older than version 2.0

, please refer Migrate Space S3 Documents with Bucket Configuration

.2, please re-update the bucket configuration.

Status
colourBlue
titleQuick Start Steps

Status
colourBlue
titleStep-1

Go to General Configuration → Configure Amazon S3 Buckets.

...

Note:

  • Access Secret Keys are not required If you are Confluence is hosted on AWS EC2.

    • You can attach S3 role to EC2 with read and write access

    • If you are bucket is on different account then use Bucket policy to grant permission to Confluence Hosted account.

  • For Access Secret Keys two ways to get i.e.

Status
colourBlue
titleStep-2

Go to page options i.e. Click (…) → Amazon S3 DocumentsFiles

Attach existing documents files or upload new one.

...

Attach / Link existing Amazon S3 File to Space via REST API.

Code Block
% curl -u admin -XPOST "http://localhost:8090/rest/spaces3documents/1.0/utility/attach/document" \
   -H "Content-Type: application/json" --data '{"bucketConfigId": 4, "spaceKey": "DT", \
   "pageId": 4816905, "documentKey": "s3://ilaesolution/documents/DT/pom.xml"}'
{"status":19,"message":"Amazon S3 File has been attached to Space. File ID #19"}
%

Upload new Amazon S3 File via REST API.

Code Block
% curl -u admin -XPOST "http://localhost:8090/rest/spaces3documents/1.0/utility/upload/document" \
  -H "X-Atlassian-Token: no-check" -F bucketId=4 -F pageId=4816905 -F file=@/tmp/pom.xml
{"status":0,"message":"Space S3 File Upload Successful. (documents/DT/pom.

...

xml)"}
%

To overwrite: -F updateDocument=true

Status
colourBlue
titleStep-3

...