Cannot connect to S3 buckets
-
Getting errors when attempting to select or list AWS s3 buckets. Errors:
Error Getting Bucket Region — There was an error attempting to get the region of the bucket tenx-wp-content: Failed to instantiate the provider client. Check your error log. Function called:- DeliciousBrainsWP_Offload_MediaProvidersStorageNull_Provider->get_bucket_location()
Error Getting Buckets — Failed to instantiate the provider client. Check your error log. Function called:- DeliciousBrainsWP_Offload_MediaProvidersStorageNull_Provider->list_buckets()
We are using IAM roles to auth to S3 following these guides: https://deliciousbrains.com/wp-offload-media/doc/custom-iam-policy-for-amazon-s3/#minimum-policy
https://deliciousbrains.com/wp-offload-media/doc/iam-roles/
Our wordpress is hosted on ECS.We enabled WP_DEBUG in wp-config.php:
define( 'WP_DEBUG', true ); define ('WP_DEBUG_LOG', true ); define ('WP_DEBUG_DISPLAY', false );
but the log does not show additional information regarding the error:
[24-Aug-2023 22:23:42 UTC] AS3CF_DeliciousBrains\WP_Offload_Media\Providers\Storage\Null_Provider->list_buckets(): Array ( )
I have also enabled the iam role manually through wp-config.php with the following:
define( 'AS3CF_AWS_USE_EC2_IAM_ROLE', true ); define( 'AS3CF_SETTINGS', serialize( array( 'provider' => 'aws', 'use-server-roles' => true, ) ) );
I can see that it is being defined by wp-config in the console, however the buckets will still not connect. Any idea what is going on?
- The topic ‘Cannot connect to S3 buckets’ is closed to new replies.