Write a script to automate the process of checking for security misconfigurations in an AWS environment at Applied Systems.