AWS S3 Attachments Storage ¶
Since 8.1.0 Confluence supports storing attachments in AWS S3. To enable this feature, update the image tag
to 8.1.0
and define bucket name and AWS region in confluence.s3AttachmentsStorage
, for example:
tag: 8.1.0
confluence:
s3AttachmentsStorage:
bucketName: confluence-attachments-bucket
bucketRegion: us-east-1
AWS Authentication ¶
You will find details on available authentication methods in Credential Provider.
Make sure ATL_UNSET_SENSITIVE_ENV_VARS
is set to false if you choose to define AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
in confluence.additionalEnvironmentVariables
:
additionalEnvironmentVariables:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws-creds
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws-creds
key: AWS_SECRET_ACCESS_KEY
- name: ATL_UNSET_SENSITIVE_ENV_VARS
value: "false"
EKS IRSA ¶
If Confluence is deployed to AWS EKS, it is strongly recommended to use IAM roles for service accounts (IRSA).
The Confluence service account will be automatically annotated with a role ARN
if it is defined, for example:
serviceAccount:
eksIrsa:
roleArn: arn:aws:iam::37583956:role/confluence-s3-role
Below is an example policy, providing appropriate S3 access to Confluence, that needs to be attached to the role:
{
"Statement": [
{
"Action": [
"s3:PutObject",
"s3:ListBucket",
"s3:GetObject",
"s3:DeleteObject"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::confluence-attachments-bucket/*",
"arn:aws:s3:::confluence-attachments-bucket"
],
"Sid": ""
}
],
"Version": "2012-10-17"
}