aws configure profile 1

aws configure profile

aws configure --profile

Here is what the above code is Doing:
1. We’re creating a new session object.
2. We’re setting the region to us-east-1.
3. We’re setting the profile to the profile we created in the AWS CLI.
4. We’re creating a new client object.
5. We’re creating a new resource object.
6. We’re creating a new bucket object.
7. We’re creating a new object object.
8. We’re uploading the file to the bucket.
9. We’re printing the URL of the file.

Similar Posts