I am trying to use the log rotation configuration for my nginx server, which I use as a reverse proxy machine located on an EC2 Ubuntu instance.
I want to save these logs in the S3 bucket after rotation, but I get a โdenial of access, are you sure you have keys with ListAllMyBuckets authorityโ when I try to configure the s3cmd tools.
I'm sure my credentials are configured correctly in IAM, have tried at least five different credentials (even the root one) with the same result. It works great to list all my buckets from my local computer using aws-cli tools with the same credentials, which puzzles me that I don't have access only to my EC2 instance.
this is what i run:
which s3cmd /usr/local/bin/s3cmd s3cmd --configure --debug Access Key: ************** Secret Key: ******************************* Encryption password: Path to GPG program: /usr/bin/gpg Use HTTPS protocol: False HTTP Proxy server name: HTTP Proxy server port: 0
and this is the result
... DEBUG: ConnMan.put(): connection put back to pool (http://s3.amazonaws.com
The only thing facing my nginx server is load balancing, but I donโt understand why this might interfere with my request. Maybe this is something else that I missed?
source share