Based on PR #3172. [AIRFLOW-2216] Use profile for AWS hook if S3 config file provided in aws_default connection extra parameters; add test to validate profile set
Make sure you have checked all steps below. ### Jira - [ ] My PR addresses the following [Airflow Jira](https://issues.apache.org/jira/browse/AIRFLOW/) issues and references them in the PR title. \[AIRFLOW-2216\] Cannot specify a profile for AWS Hook to load with s3 config file - https://issues.apache.org/jira/browse/AIRFLOW-2216 ### Description - [ ] Here are some details about my PR, including screenshots of any UI changes: NO UI CHANGES MADE ### Tests - [ ] My PR adds the following unit tests __OR__ does not need testing for this extremely good reason: UNIT TEST ADDED ### Commits - [ ] My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)": 1. Subject is separated from body by a blank line 1. Subject is limited to 50 characters (not including Jira issue reference) 1. Subject does not end with a period 1. Subject uses the imperative mood ("add", not "adding") 1. Body wraps at 72 characters 1. Body explains "what" and "why", not "how" ### Code Quality - [ ] Passes `git diff upstream/master -u -- "*.py" | flake8 --diff` [ Full content available at: https://github.com/apache/incubator-airflow/pull/4011 ] This message was relayed via gitbox.apache.org for devnull@infra.apache.org