factor out metadata.readCredentials
refactor
refactor ec2 client
refactor elb
refactor iam client