Fixed iam_profile inheritance and use of default security groups in applications.