Fix/3.x/aws logging fix

Fixed an issue with the logging; when the security group was rejected, you get an log that the tagkey/value didn't match and the other way around.

Also did a minor code improvement by pulling out a method.