Giter VIP home page Giter VIP logo

gmournos / quicksight-as-code Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 4.0 51 KB

QuickSight artifacts with CDK, CodePipeline, CLI scripts

Home Page: https://medium.com/@gmournos/aws-quicksight-as-code-a-unified-approach-for-quicksight-development-and-deployment-using-aws-30bbb6bd253a

JavaScript 1.13% TypeScript 87.28% Shell 11.60%
cdk cicd codepipeline quicksight typescript quicksight-dashboard

quicksight-as-code's People

Contributors

gmournos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

quicksight-as-code's Issues

Do not use dynamic values

Hey George,

Got your ping from the CDK repo issue (aws/aws-cdk#19212 (comment))

Was looking at your code and so far it looks like a really in-depth solution and I am really enjoying studying your approach!

I have one recommendation though. Do not use dynamic (at build time) values like this. Because this will result in a d CloudFormation change, and will always result in an update, on every deployment.

const nextMidnight = new Date().setUTCHours(24,0,0,0); // next midnight

Performing a diff on versions of this file, shows the actual change implemented

OMG, this is amazing and clever!! Thanks for sharing that. This one paragraph changes so much for me you have no idea!

The QS developer runs script make-template-choice.sh for this analysis, in order to create a template from the updated analysis and to download its definition. At this point, the file e.g. template-defs/sales-template-def.json has changed to reflect the requirement. However, it is cumbersome to locate the actual change because a lot of internal ids of the template also changed. To circumvent this problem, we can instead use file template-defs/review/sales-template-def.json, which is also generated when we run script make-template-choice.sh. This is a projection of the template definition, without these internal ids. Performing a diff on versions of this file, shows the actual change implemented, providing for full transparency and traceability to requirements.

Refresh using Step Function

Just a suggestion, nothing wrong with your solution. But a cool solution we developed is to use Step Functions to issue refresh requests. That way you don't need to maintain a Lambda and you get a nice visual log of all the runs, so don't need to even log into CloudWatch. Plus you can do retries, and even build a whole graph of refreshes, if you want, in the right sequence.

new LambdaFunction(refreshDatasetFunction),

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.