Fix Aws client bug

Fix a bug with duplicate client variable.
Add a corresponding test case

Add code climate ci information

Signed-off-by: Christoph Kassen <christoph@kassen.name>