Acquia makes available the s3cmd command line utility to manage Amazon S3 Buckets.
If you encounter either of these errors using the s3cmd --configure command:
ERROR: Test failed: 400 (InvalidToken): The provided token is malformed or otherwise invalid.ERROR: Test failed: 403 (SignatureDoesNotMatch): The request signature we calculated does not match the signature you provided. Check your key and signing method.then you can follow the next steps as a workaround:
AWS_ACCESS_KEY_ID as the label for the access key ID, and AWS_SECRET_ACCESS_KEY for the secret access key. The variables will be available to you in your Drupal application and via SSH, i.e. s3cmd (in new shell after you create the environment variables).Once you've followed the above steps, try it out: s3cmd ls will list all of your buckets. You can also run s3cmd --help to list all the commands possible.
Note that:
We recommend referring to https://s3tools.org/s3cmd-howto for additional information.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Wed Oct 22 2025 08:59:29 GMT+0000 (Coordinated Universal Time)