Extracted a method from a longer method for clarity.
Fixed an issue with aws-sdk-resources loading resource definitions.
Updated .gitignore to look for ignored files in repo root only.

All of the ignored files should only exist in the root of the
repo. This ensures they don't hide other files with similar
names.