Socket
Socket
Sign inDemoInstall

dynamodb-analytics

Package Overview
Dependencies
118
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dynamodb-analytics

### 1. Config Lambda Code


Version published
Maintainers
1
Install size
89.6 MB
Created

Readme

Source

How to

1. Config Lambda Code

const {
    App,
    handlers
} = require('dynamodb-analytics');

const app = new App({
    analytics: { // optional
        ttl: 2 * 365 * 24 * 60 * 60 * 1000, // 2 years
        ttr: 30 * 60 * 1000 // 30 minutes
    },
    logs: {
        firehose: {
            concurrency: 100, // optional
            stream: 'app-analytics-logs'
        }
    },
    tablePrefix: 'prefix' // optional
});

exports.fetch = handlers.fetch(app);
exports.logsFirehose = handlers.logsFirehose(app);
exports.logsHit = handlers.logsHit(app);

2. Config Lambda Handlers

Name
app-analytics-fetch

Handler
index.fetch

Size
3008 MB

-

Name
app-analytics-logs-firehose

Handler
index.logsFirehose

Size
512 MB

-

Name
app-analytics-logs-hit

Handler
index.logsHit

Size
128 MB

3. Config Kinesis Firehose

Name
app-analytics-logs

Lambda Transformer
app-analytics-logs-firehose

S3 Bucket
app

Prefix
analytics-logs/dt=!{timestamp:yyyy}-!{timestamp:MM}-!{timestamp:dd}/

Error prefix
analytics-logs-error/err=!{firehose:error-output-type}/dt=!{timestamp:yyyy}-!{timestamp:MM}-!{timestamp:dd}/

FAQs

Last updated on 11 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc