AWS S3
Here you can find the documentation for configuring AWS S3 bucket in Coolify.
TLDR
- Create a bucket in AWS Console
- Create a custom policy in AWS Console with the following permissions:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetObject",
"s3:DeleteObject",
"s3:GetObjectAcl",
"s3:PutObjectAcl",
"s3:PutObject"
],
"Resource": [
// rewrite your-bucket-name with your bucket name
"arn:aws:s3:::your-bucket-name",
"arn:aws:s3:::your-bucket-name/*"
]
}
]
}
- Create an IAM user in AWS Console & attach the policy from the previous step.
- Go to User settings & create an
Access Key
in AWS Console. - Add the
Access Key
andSecret Key
in Coolify when you create a new S3 source.You need to use the S3 HTTP endpoit without the bucket name, for example,
https://s3.eu-central-1.amazonaws.com
.
Detailed steps
Create a bucket
Create a bucket.
Go to AWS Console and
create a new bucket.
Name your bucket.
![2](https://mintlify.s3-us-west-1.amazonaws.com/coollabstechnologiesbt/images/aws-s3/2-bucket.jpeg)
Create a new policy
Create a new policy.
Go to AWS Console and create a new policy.
Name & configure your policy.
Add the following JSON permissions to your policy (replace your-bucket-name
with your bucket name):
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetObject",
"s3:DeleteObject",
"s3:GetObjectAcl",
"s3:PutObjectAcl",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::your-bucket-name",
"arn:aws:s3:::your-bucket-name/*"
]
}
]
}
Create a new IAM user
Create a new IAM User.
Go to AWS Console and
create a new user.
Name your user.
![2](https://mintlify.s3-us-west-1.amazonaws.com/coollabstechnologiesbt/images/aws-s3/2-iam.jpeg)
Attach the policy created in the previous step.
Go to your user settings.
![4](https://mintlify.s3-us-west-1.amazonaws.com/coollabstechnologiesbt/images/aws-s3/4-iam.jpeg)
Create a new `Access Key`.
Set `Other` as use-case.
![6](https://mintlify.s3-us-west-1.amazonaws.com/coollabstechnologiesbt/images/aws-s3/6-iam.jpeg)
Copy the `Access Key` & `Secret Access Key`.
You will need it to configure this S3 storage in Coolify.
Configure S3 in Coolify
Add new S3 Storage
Go to your Coolify instance and create a new S3 storage.
Add the details.
Make sure you use the S3 HTTP endpoint without the bucket name. For example,
https://s3.eu-central-1.amazonaws.com
.
Well done!