Create AWS S3 Feed

User Intent

"How do I sync files from AWS S3 bucket? Show me S3 feed configuration."

Operation

SDK Method: createFeed() with FeedTypes.Site Feed Service: AWS S3 Auth: AWS credentials


Code Example (TypeScript)

import { Graphlit } from 'graphlit-client';
import { FeedTypes, FeedServiceTypes } from 'graphlit-client/dist/generated/graphql-types';

const graphlit = new Graphlit();

const feed = await graphlit.createFeed({
  name: 'S3 Documents',
  type: FeedTypes.Site,
  site: {
    type: FeedServiceTypes.S3Blob,
    bucketName: 'my-documents-bucket',
    prefix: 'documents/',
    region: 'us-west-2',
    accessKey: process.env.AWS_ACCESS_KEY!,
    secretKey: process.env.AWS_SECRET_KEY!,
  },
  // Optional: add workflow for content processing
  // workflow: { id: workflow.createWorkflow.id }
});

console.log(`Created S3 feed: ${feed.createFeed.id}`);

Configuration

bucketName: S3 bucket name prefix: Folder path in bucket region: AWS region accessKey/secretKey: AWS credentials


Last updated

Was this helpful?