GitXplorerGitXplorer
a

awslist

public
3 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
779dc86c46b8249a962450166d82159460a0ca54

Merge pull request #4 from blacked/refs#5-features

aadubkov committed 9 years ago
Verified
5e5bf07f56fadfbac9541f8af130aeb58df219a6

update readme

aadubkov committed 9 years ago
Verified
7ca556b48cd394209909f5aaa1eb661eab6fd131

add specific elb requests

aadubkov committed 9 years ago
Verified
48c08b95820d256fdf7dbeb6e310e882a2a12336

remove empty string variables assigment

aadubkov committed 9 years ago
Verified
d9fd40ecb16f144df8312e6f9d915227e53fc0f6

fix some typo, add debugHandler to http_server

aadubkov committed 9 years ago
Verified
3786250c21ce259b1b50f4140de416ef4428b36a

add compatibility flag and tests for utils

aadubkov committed 9 years ago

README

The README file for this repository.

awslist

Tool to list resources in aws accounts.

build and deploy

$ make all

# First we should build docker container:
docker build -t yourreponame:port/awslist:latest .

# Push container to our registrty
docker push yourreponame:port/awslist:latest

# On docker host we should create init file to keep this container running as a service:
cat > /etc/init/awslist.conf <<EOF
description "awslist service"

start on runlevel [2345]
stop on runlevel [016]

respawn
respawn limit 10 5

script
	exec docker run \
	 -v /root/.aws/:/root/.aws/ \
         -p 8080:8080 \
         adubkov/awslist:latest \
	 2>&1 | logger -t awslist

end script
EOF

configuration

awslist using ~/.aws/credentials:

[default]
aws_access_key_id=ACCESS_KEY1
aws_secret_access_key=SECRET_ACCESS_KEY1

[prod]
aws_access_key_id=ACCESS_KEY2
aws_secret_access_key=SECRET_ACCESS_KEY2

[qa]
aws_access_key_id=ACCESS_KEY3
aws_secret_access_key=SECRET_ACCESS_KEY3

usage

Once container is up, you can perform curl requests to get list of aws resources:

curl -s http://127.0.0.1:8080
curl -s http://127.0.0.1:8080/ec2
curl -s http://127.0.0.1:8080/elb
curl -s http://127.0.0.1:8080/elb/{profile_name}
curl -s http://127.0.0.1:8080/elb/{profile_name}/{elb_name}