How Do You Troubleshoot the Python Error “NameError: name is not defined” When Using Boto3?

Problem scenario
You are running a Python program with Boto and you get an error like this:

  " aws_access_key_id=AKIAJfoobar9999, NameError: name 'AKIAfoobar9999' is not defined"

What should you do?

Solution
Put single quotes around the aws_access_key_id value.

Leave a comment

Your email address will not be published. Required fields are marked *