Coder Social home page Coder Social logo

cdk-glue-autoupdate's Introduction

AWS Athena Auto Update Index

cdk language

Description

In this CDK project are all the resources that updated glue indexes for Athena Tables automated. You can find more information about this solution at this blogpost.

Architecture

Architecture

The CDK stack "YOURPREFIX-CF-STACK-GlueIndexAutoupdate" rolls out a central EventBus in which a "PutEvent" from the management account is allowed, furthermore it rolls out a Lambda function that extends Athena Table ConfigurationsParameters with newly created AWS AccountIds, so that these appear in the index and are therefore "query" bar in the Athena Console. The Lambda is triggered by the forwarded events from the billing account.

The CDK stack "YOURPREFIX-CF-STACK-SSO-EVENTRULE" rolls out an event rule that forwards the following events ( CreateAccountResult - for newly created accounts & AcceptHandshake - for newly imported accounts into the organization) into the logging account.

Deployment

Prerequisites

  • aws CLI Version 2.x
  • cdk Version 2.x
  • docker or esbuild for transpiling from the lambda function (with docker an esbuild image is downloaded)

Deployment

Glue Index Automation Stack

For deployment, a valid session must first exist in the logging account (logging) in the shell. Deployment then works via:

cdk deploy YOURPREFIX-CF-STACK-GlueIndexAutoupdate

Configuration-file logging.ts exist in folder values.

Organization Forward Rule

For deployment, a valid session must first exist in the billing account (management) in the shell. Deployment then works via:

cdk deploy YOURPREFIX-CF-STACK-GLUE-EVENTRULE

cdk-glue-autoupdate's People

Contributors

daknhh avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

rverma-dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.