Revert "Revert "Workaround for issue in AWS SDK not reading temporary credentials from EC2 metadata service""

This reverts commit 857654c4667ab57fae927c7c4da6d342bed0ed82.