S3
Environment variable
1 |
|
Uses S3 bucket for storing backups (by default AWS but own instance can be specified eg. Minio).
Note
There can be only one upload provider defined per app, using BACKUP_PROVIDER environemnt variable. It's type is guessed by using name
, in this case name=s3
. Params must be included in value, splited by single space for example "value1=1 value2=foo".
Params
Name | Type | Description | Default |
---|---|---|---|
name | string[requried] | Must be set literaly to string s3 to use S3. |
- |
bucket_name | string[requried] | Your globally unique bucket name. | - |
bucket_upload_path | string[requried] | Prefix that every created backup will have, for example if it is equal to my_ogion_instance_1 , paths to backups will look like my_ogion_instance_1/your_backup_target_eg_postgresql/file123.age . Usually this should be something unique for this ogion instance, for example k8s_foo_ogion . |
- |
endpoint | string | S3 endpoint. | s3.amazonaws.com |
secure | string | If set to false , connect to endpoint under http. |
true |
region | string | Bucket region. | null |
access_key | string | User access key id, see Resources below. | null |
secret_key | string | User access key secret, see Resources below. | null |
Examples
1 2 3 4 5 6 7 8 9 10 11 |
|
Resources
Bucket and IAM walkthrough
https://docs.aws.amazon.com/AmazonS3/latest/userguide/walkthrough1.html
Giving IAM user required permissions
Assuming your bucket name is my_bucket_name
and upload path test-upload-path
, 3 permissions are needed for IAM user (s3:ListBucket, s3:PutObject, s3:DeleteObject):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|