Bucket setup
AttachKeep uploads into a bucket you own, with a key you make for it. The key only needs permission to upload to that one bucket: AttachKeep never lists or reads back your files, and deletes nothing but its own old nightly backups (if you turn backups on; see Nightly backups for the two lines to add to the policy).
Amazon S3
- In the AWS console, open S3 and create a bucket (or use one you have). Note its name and its AWS Region code, such as
us-east-1. - Open IAM, create a user for AttachKeep (for example
attachkeep-uploads) with no console access. - Give it this policy, with your bucket's name in place of
YOUR-BUCKET(and the folder, if you use one other thanairtable/):
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::YOUR-BUCKET/airtable/*"
}
]
}
- Under the user's Security credentials, create an access key. Copy the access key ID and the secret access key into AttachKeep's Bucket page. AWS shows the secret only once.
- Leave Public address empty: AttachKeep uses the bucket's own S3 address,
https://YOUR-BUCKET.s3.REGION.amazonaws.com. If you serve the bucket through your own domain (for example with CloudFront), enter that address instead.
New S3 buckets block public access. If you want the links to open for anyone, you must allow public reads yourself (for the folder AttachKeep uses, or through CloudFront); see Links and privacy.
Cloudflare R2
- In the Cloudflare dashboard, open R2 and create a bucket. Note your account ID (on the R2 overview page).
- Under Manage API tokens, create a token with Object Read & Write permission and apply it to this bucket only. Copy its access key ID and secret access key into AttachKeep's Bucket page. Cloudflare shows the secret only once.
- If the bucket was made in Cloudflare's EU jurisdiction, choose EU on AttachKeep's Bucket page.
- For the links, connect a custom domain to the bucket in its settings and enter it as the Public address, such as
https://files.example.com. Cloudflare'sr2.devaddress works while you test, but Cloudflare says it is rate-limited and meant for development only.
R2 buckets are private until you connect a custom domain or turn on the r2.dev address.
Changing or removing the bucket
- To change the folder or the public address, save the form with the key fields empty: the saved key stays.
- To use another bucket or a new key, enter the new key too. Files already copied stay where they are, and links already written keep pointing to them.
- Remove the bucket deletes the key from AttachKeep and stops copying. Nothing in your bucket is touched.
When an upload fails
The Bucket page and the Activity page say why, in plain words: the keys were not accepted, the key has no upload permission, the bucket name or region is wrong, or the bucket did not answer. AttachKeep emails you (at most once a day), keeps the changed records waiting, and copies them once the bucket accepts uploads again.