Course 2 Week 1 S3 Lab

In Jupyter Notebook, when I create a bucket using the SDK, I’m able to successfully create it in my AWS account. However, I’m curious about how the Jupyter Notebook determines which AWS account to connect to and the authentication process that occurs behind the scenes. Understanding this internal mechanism for connecting to my AWS account would greatly enhance my comprehension of the system.

If you are using Windows PC like me, look under c:\Users<yourname>.aws folder. There will be a ‘credentials’ file with the following:
[default]
aws_access_key_id = XXXXXXX
aws_secret_access_key = XXXXXXX
The AWS SDK picks up this file to authenticate. Alternately these 2 entries would be set in Environment variables.