Coder Social home page Coder Social logo

aws_media_dashboards's Introduction

aws_media_dashboards

a python only rewrite of the AWS media dashboard scripts

https://aws.amazon.com/blogs/media/cs-quick-and-easy-media-services-dashboards/

Implemented Classes

  • CloudwatchDashboard - just used to post the created JSON to AWS
  • JinjaRender - wrapper for the Jinja2 template renderer
  • EmxDashboard - Elemental Media Connect Dashboard builder
  • EmlDashboard - Elemental Media Live Dashboard builder
  • EmpDashboard - Elemental Media Package Dashboard builder
  • EmcDashboard - Elemental Media convert Dashboard builder
  • S3Dashboard - S3 Bucket summary
  • EmsDashboard - Elemental Media Store Dashboard builder - UNTESTED
  • EmtSsaiDashboard - Elemental Media Tailor Server Side Ads - UNTESTED
  • EmtVodDashboard - Elemental Media Tailor VoD (Live to VoD) - UNTESTED
  • IvsChannelsDashboard - Amazon Interactive Video Service (IVS) - UNTESTED
  • CloudFrontDashboard - Cloudfront metrics (not advanced ones - they cost money!)

Requirements

  • python3
  • pip to install the required libraries, namely
    • boto3 - the AWS library
    • Jinja2 - the template renderer library
  • You will need the AWS profile setup, this is done via installing the AWS CLI and running aws configure.

Installing

  • Download and unzip

  • Install Python dependancies by changing to the folder with the requirements.txt and running

      pip install -r requirements.txt
    
  • configure the script by editing main.py - the two constants to change are

    • AWS_PROFILE - the name of a profile you have created on your system (e.g. via "aws configure")
    • AWS_REGION - the AWS region to look for resources in and also to create the dashboard in, e.g. eu-west-1
  • run the script (python maybe python3 on some systems)

      python main.py
    

Edit the main.py to pick and choose which dashboards / the AWS profile you use and the region

Change To Jinga2

I've changed the code to use Jinja2 templates to make the code a little easier to read. Need to fully test but it should allow the templates to be quickly changed and edited.

You can edit the Jinga2 templates as desired. If you want to add more parameters, check out the relevant "get_grab_bag()" function which creates the object which is supplied to the Jinja2 template.

TODO

  • make more generic
  • test!
  • build a command line interface
  • support better filtering by name and tags
  • support deleting "empty" dashboards
  • Make the region and profile more flexible (rather than coded)

aws_media_dashboards's People

Contributors

hardim11 avatar

Watchers

 avatar

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.