You can enable s3 archiving for your logs as follows.
1. Configure S3 bucket
Sign in to AWS Management Console
Click services on the menu bar, click S3 under storage tab. Create new S3 bucket.
Open your bucket and click on the Permissions tab.
Scroll down and click the Edit button in the Bucket policy.
Paste the following policy JSON into the Bucket policy section.
Make sure to replace YOUR_BUCKET_NAME with the actual name of your bucket.
copy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AtatusLogBucketAccess",
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::431904702782:root"
]
},
"Action": [
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::YOUR_BUCKET_NAME"
},
{
"Sid": "AtatusLogObjectAccess",
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::431904702782:root"
]
},
"Action": [
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*"
}
]
}
6. Click Save changes.
2. Set up Archive in Atatus dashboard
Navigate to Logs -> Archives menu.
Click Create New Archive button.
Enter your S3 Bucket name and Path.
Enter your archive name, then click Save.