When I SSH into my EC2 instance - I can use aws s3 ls --profile myprofile
and can see data in S3 since at that point of time - I assumed myprofile
which has access to specific buckets in S3.
In that very moment - I do not provide any secret and access key (just --profile myprofile
).
How to achieve the same using Python? So far I've seen only by using Boto library but it ask for Secret/Access keys. Trying to avoid that but just use profile if possible (as it is possible by using aws cli).
Thanks.