Could not get s3 bucket - Error 403 Forbidden - Backup of sqlite db's

I'm trying to enable backup of the sqlite databases to s3. I enabled it through the configuration wizard, bucket name, access and secret key has been added to the docker compose file. And I done a force reload of the entire project.

Unfortunately I'm getting a 403 Forbidden error when running the s3push all command, I have checked the credentials and they are working when using the aws client from the command line within the db container. I logged on it and pip installed and configured the setup.

Anyone who got this working or know how to debug it further?

Test with boto:

conn = boto.connect_s3(access_key, secret_key)
# create_bucket is idempotent and will create or get the bucket
bucket = conn.create_bucket(bucket_name)

Thanks for the reply. It worked as it should with boto. I fixed the issue by destroying the server and spinning up a new one with the compose file configured for S3 from the start, not adding S3 access to the compose file after the main setup was done.