Hi@akhtar,
You need to create a session in your boto3. There you can provide the ID and key in your file. You can see the below example.
import boto3
session = boto3.Session(
aws_access_key_id=settings.AWS_SERVER_PUBLIC_KEY,
aws_secret_access_key=settings.AWS_SERVER_SECRET_KEY,
)