Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to make connection with AWS s3 URI

I have a microservice on Cloud Run which has an api whose role is to check whether the credentials provided by the user has access to the s3 bucket or not. This api was working fine till morning but after some time, it is throwing the below error:
Connect timeout on endpoint URL: "aws-s3-URI"
The same code is working in local and dev environments. But in the production, it is giving the above error. Also, I deployed a new microservice on the production environment only and the api worked. 

0 1 336
1 REPLY 1

How are you connecting to the bucket when using cloud run? Are you using Google documentation? Are you using XML API to connect to cloud run? Did you store the S3 HMAC keys in your ~/.aws/credentials? Here is some documentation I find useful [1], [2].

[1]:https://cloud.google.com/storage/docs/interoperability
[2]:https://cloud.google.com/storage/docs/authentication/hmackeys

Top Solution Authors