Giter Club home page Giter Club logo

boto-flask-fetch's Introduction

Boto-Flask-Fetch

Search your AWS infrastructure with Boto3 wrapped inside a Flask api

Boto3 Flask FetchSearch your AWS infrastructure with Boto3 wrapped inside a Flask api.

Setup virtualenv venvvenv/bin/pip install -r requirements.txt Run venv/bin/python run.py Use Try running curl localhost:6000/api/fetch-regions to get the following response {  "data": [    "ap-south-1",    "eu-west-2",    "eu-west-1",    "ap-northeast-2",    "ap-northeast-1",    "sa-east-1",    "ca-central-1",    "ap-southeast-1",    "ap-southeast-2",    "eu-central-1",    "us-east-1",    "us-east-2",    "us-west-1",    "us-west-2"  ]}

Fetch API

Example: fetch ec2-instance with tags curl "localhost:6000/api/fetch?tag:Environment=dev&state=running" URL Params- Search Criteria

  • state - aws instance state- region - aws-region- id - aws instance id- public-ip - public ip address of ec2-instance- private-ip - private ip address of ec2-instance- tag:* - any tag name to match  Tag Examples:  - tag:Name=srvX - tag:Environment=dev Functions
  • single-region - [0 or 1] - if a region is not specified and single-region=1, returns the first instance(s) matching search criteria within a region loop

boto-flask-fetch's People

Contributors

praveen1664 avatar

Stargazers

 avatar  avatar  avatar  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.