What should I input in Profile name in using python SDK?

Hi, I have tried putting my full profile name in the input in lambda, but it throws an error of config profile (Mark Test) could not be found. I have already attached full access policy for honeycode.

session = boto3.Session(profile_name = 'Mark Test')

Hi @Mark-9007 welcome to the forum and sorry to hear you're having problems with profiles. I wonder if you're running into problems with your Named profiles in general. Can you try listing the profiles you may have and see if it indeed does have a 'Mark Test' profile?

If you run the command:

aws configure list-profiles

It should show something like:

[Mark-test]
aws_access_key_id=...
aws_secret_access_key=...

[default]
aws_access_key_id=...
aws_secret_access_key=...
aws_session_token=...

If it does not contain a Mark-test profile, you need to configure one. Let us know if this helps!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.