Configure external S3 storage for event data.
BugSnag On-premise allows you to store event data in an external S3-compatible object storage instead of the default in-cluster storage. This can be useful for managing storage costs and scaling.
You can enable S3 storage for event data via the BugSnag Admin Console (KOTS).
s3.us-east-1.amazonaws.com).bugsnag-event-data).If you are deploying on AWS EKS, you need to ensure the necessary resources (S3 bucket and IAM roles) exist and are configured correctly.
If you are using our provided CloudFormation template to install BugSnag, you can simply provide a value for the EventStorageS3BucketName parameter. The template will automatically:
event-storage-service service account using EKS Pod Identity.If you are not using the CloudFormation template or wish to configure resources manually, you must set up the S3 bucket and IAM role as follows.
Create a standard S3 bucket. The name must match the value you provide in the Event storage S3 bucket configuration.
Create an IAM role that will be assumed by the BugSnag service.
Trust Policy:
This policy allows the EKS Pod Identity service to assume the role.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "pods.eks.amazonaws.com"
},
"Action": [
"sts:AssumeRole",
"sts:TagSession"
]
}
]
}
Permissions Policy:
Attach a policy to the role that grants access to your S3 bucket. Replace YOUR_BUCKET_NAME with your actual bucket name.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::YOUR_BUCKET_NAME",
"arn:aws:s3:::YOUR_BUCKET_NAME/*"
]
}
]
}
You must associate the created IAM role with the event-storage-service Kubernetes service account in the namespace where BugSnag is installed (default: bugsnag).
You can do this using the AWS CLI:
aws eks create-pod-identity-association \
--cluster-name <YOUR_CLUSTER_NAME> \
--namespace bugsnag \
--service-account event-storage-service \
--role-arn <YOUR_IAM_ROLE_ARN>
Replace <YOUR_CLUSTER_NAME> and <YOUR_IAM_ROLE_ARN> with your values.