Setting up aws connection via profile in local machine


I work with multiple aws profiles on my machine. All of them remain valid for an hour. While I am doing development on my local machine I want to use certain profile in my local airflow server launched via astro dev start. For this I have followed the instructions on airflow documentation to setup airflow_settings.yaml file below.

This doesn’t seem to work. When I launch the airflow server locally, particular dag using the boto3 library is throwing the error: NoCredentialsError: Unable to locate credentials

I have made sure that in my ~/.aws/credentials I have a right profile with the right name. Please help.