Best way to authenticate boto3??

  • Hello All,

    I'm building a Python based desktop application to work with some AWS services. The application has a front-end built with the kivy framework and AWS boto3 being the primary tool in the back-end. So my aim is to access services such as AWS IoT & DynamoDB using this application.

    The question is, according to AWS standards, we've three modes of authentication for boto3 to access AWS servers.

    1. X.509 certificates
    2. IAM Authentication
    3. Cognito Identities

    X.509 certificates are mostly preferred for embedded devices and not in applications.

    That leaves me with 2 options, either IAM or Cognito.

    I'm not convinced with the idea of hard coding credentials into our code.

    In such a case which one of these is a better way of authentication and why?

    Do we really have a problem if we hard-code IAM credentials in our application code?

Log in to reply

Recent Posts

  • read more
  • Hi @Akhil I found the following answer in one of the forums. here is the link to the thread.

    The way that I've seen most people do it (have a look on the Raspberry Pi forums), and have done myself with success is using /etc/rc.local.

    All you need to do here is put ./myscript in the rc.local text file. If it's in python, put python

    This literally is "a simple solution, (like dropping my script in some "startup" directory or something similar)"- maybe search on the forums when you're having questions as well, this solution came up on the first 4 results of a google search!

    read more
  • i need to run a QT application on BOOT. and i want to disable all controls like minimize application, close application.
    Anyone have experience in this? please help me.

    read more
  • @mubassir-mk Glad that it helped.

    read more
  • M

    @kowshik1729 Thank you....
    Very help full your replay ...

    read more