Backend is not able to access AWS Credentials From OS environment

Priority: High
Request: Backend is not able to access AWS Credentials From OS environment
Project ID: loccality_14627
Project Link: https://app.crowdbotics.com/dashboard/app/14627
Staging Link: https://loccality-14627.botics.co/
Additional Info: There are settings in the settings.py of the Django Application, related to AWS, Backend is trying to access credentials from environment variables. I can not see these variables in the CB dashboard, therefore most of the APIs are not working, and also media is not being accessed.

AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID')

AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY')

AWS_STORAGE_BUCKET_NAME = os.environ.get('AWS_STORAGE_BUCKET_NAME')

AWS_S3_SIGNATURE_VERSION = 's3v4'

cc: @ramzi
@dmitrii.k your kind support here on priority, please.

Hi @umer.siddiq, thanks for writing in.

AWS variables are internal and hidden from the CB Dashboard. They are still available to your app’s code.

@umer.siddiq what is the update here

But, APIs are not working we are facing unexpected behavior, https://stackoverflow.com/questions/59640100/valueerror-at-required-parameter-name-not-set can you also add aws region as a env var, since if We change settings and stop using Aws then APIs start working.

@dmitrii.k please check above point

1 Like

@umer.siddiq, I’m sorry you’re having so much trouble with your integration.
The region is already provided to you. Here are the variables that are related to AWS:

AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_STORAGE_BUCKET_NAME
AWS_STORAGE_REGION 

OK thank you let me test again,

1 Like

Thanks @dmitrii.k We are able to fix it.

1 Like

You are always welcome, @umer.siddiq!

Happy coding!