Web frontend for afp (aws federation proxy)
JavaScript HTML CSS Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
devel
js
templates
.gitignore
.mailmap
LICENSE
MIT
Makefile
README.rst
Screenshot afp-web with money bag with annotations.png
Screenshot afp-web with money bag.png
VERSION
afp-web.spec
default-logo.png
favicon.png
index.html

README.rst

AFP-WEB

What it is?

This is a web frontend, which communicates with the aws federation proxy (afp) via its rest api and displays the results:

  • Give an overview of all available accounts and their usable roles for the logged in user
  • Get and show temporary credentials for the selected account and role
  • Automatic login to the aws management console for the desired account

Configuration & Setup

Webserver

The files should be made accessible for your webserver. How is up to you. For example in a vhost with:

DocumentRoot '/var/www/afp-web'

API access

Use the app.js file to configure the location of the afpApiEndpoint. By default uses the same host as this webui with an endpoint of /afp-api/latest/

Logo configuration

If you want to replace the default logo just put a image file called logo.png into the DocumentRoot.

Costs link

For each account afp-web can show a link to your own AWS costs dashboard. To enable this feature create a config.json file at the top of your DocumentRoot with this content:

{
    "costsLink": "http://ice/ice/dashboard/summary#account="
}

The name of the AWS account will be appended to this URL.

Development

  • Install node
  • go to the devel subdirectory
  • npm install apimocker
  • Use node node_modules/apimocker/bin/apimocker.js -c config.json to start the apimocker web server
  • Point your browser to http://localhost:8080

Copyrights