Giter Site home page Giter Site logo

cloudsave's Introduction

CloudSave

Cloudsave is a web application in container which monitor orphans resources allocated on cloud.

It is helpfull to identify resources allocated which are not in use anymore.

Right now, CloudSave is compatible only with the Azure cloud. Come back in a few weeks for more compatibility.

If you wanna run this project you'll need an azure app account. We recommend an account with specifics rights to access resources from the cloud. First you'll need a role and then an account with it.

Create a role on Azure

ReadAllAndStorage.json

  {
    "Name": "ReadAllAndStorage",
    "Actions": [
      "Microsoft.Storage/storageAccounts/listKeys/action",
      "Microsoft.Storage/storageAccounts/read",
      "*/read"
    ],
    "NotActions": [],
    "AssignableScopes": [
      "/subscriptions/0000000000000000000000000000"
    ],
    "Description": "Read resources and Storage",
    "IsCustom": "true"
  }

Caution! The action "Microsoft.Storage/storageAccounts/listKeys/action" will grant acces to the storage keys. If you don't want acces to the storage account do not add it.

Create the role:

az role definition create --role-definition @ReadAllAndStorage.json

Create an app account

az ad sp create-for-rbac --role="ReadAllAndStorage" --name "cloudsave" --scopes="/subscriptions/SUBSCRIPTION_ID"

HUB.DOCKER

clusterlab/cloudsave/

Docker Compose

docker-compose.yml

version: '3.3'
services:
  cloudsave-db:
    image: 'bitnami/mongodb:3.6'
    restart: always
  cloudsave-web:
    image: 'clusterlab/cloudsave:latest'
    restart: always
    environment:
      -  MONGOSERVER=mongodb://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      -  MONGODB=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      -  AZ_APPID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      -  AZ_DISPLAYNAME=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      -  AZ_NAME=http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      -  AZ_PASSWD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      -  AZ_TENANT=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      -  AZ_SUBSCRIPTION=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    ports:
      - "8383:8000"
    links:
      - cloudsave-db
    depends_on:
      - cloudsave-db

http://localhost:8383

Contact: [email protected]

cloudsave's People

Contributors

heltondd avatar rocko83 avatar rofreitas avatar

Stargazers

Elias Neves avatar  avatar

Watchers

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