Connect to AWS S3 for event archiving
Set up a data route that archives all device events to an S3 bucket for long-term storage and batch analysis.
Prerequisites
- A Blecon network with devices generating events
- An AWS account with an S3 bucket
- IAM credentials with write access to the bucket
Step 1: Prepare your S3 bucket
- Create an S3 bucket in your AWS account (or use an existing one).
- Create an IAM policy that grants
s3:PutObjectpermission on the bucket. - Create IAM credentials (access key + secret) for Blecon to use.
Step 2: Add the S3 route
- In the Console, open your network.
- Go to Routes and click Add Route.
- Select AWS S3 as the destination.
- Enter your bucket name, region, and IAM credentials.
- Select which event types to archive.
- Click Save.
Step 3: Verify
- Wait for a device to generate events.
- Check your S3 bucket — event objects should appear organized by date.
Querying archived events
Once events are in S3, you can query them using:
- AWS Athena — Run SQL queries directly on the JSON files.
- AWS Glue — Build ETL pipelines for data transformation.
- Custom processing — Download and process files with your own tools.