airtable-syncer 1.0.1
Install from the command line:
Learn more about npm packages
$ npm install @shiftcode/airtable-syncer@1.0.1
Install via package.json:
"@shiftcode/airtable-syncer": "1.0.1"
About this version
🎯 Target runtime: es2024 (Node >= 24)
Module to sync airtable data to S3 and publish SNS events for all attachments found and not yet synced to S3. Usually those events are consumed by a lambda function creating different sizes of the images and storing them in S3.
- provide
AirtableSyncConfigbound to theAIRTABLE_SYNC_CONFIGsymbol - provide an implementation for the AttachmentUrlResolver
import { AttachmentUrlResolver, AIRTABLE_SYNC_CONFIG, AirtableSyncConfig } from '@shiftcode/airtable-syncer'
import { Container } from 'inversify'
import { configCreaterFn, ServiceConfig } from './config.js'
import { ServiceAttachmentUrlResolver } from './attachment-url-resolver.service.js'
const con = new Container({
defaultScope: 'Singleton',
autoBindInjectable: true,
})
con.bind<AirtableSyncConfig>(AIRTABLE_SYNC_CONFIG).toDynamicValue(configCreaterFn).inSingletonScope()
con.bind(AttachmentUrlResolver).to(ServiceAttachmentUrlResolver).inSingletonScope()- define the sns event and function in serverless.yml to download attachments from airtable and upload them to s3
Details
- airtable-syncer
-
shiftcode
- 26 days ago
- MIT
- 11 dependencies
Assets
- airtable-syncer-1.0.1.tgz
Download activity
- Total downloads 20
- Last 30 days 20
- Last week 3
- Today 0