Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

235
Vistas
AWS GetBucketLocationRequest with UseSignatureVersion4 option

How to request a bucket location with UseSignatureVersion4 global option? In fact, I need to create an instance of AmazonS3Client with a specified region endpoint. But, for example, if I have a bucket located in "us-west-2" region and create a default client AmazonS3Client with "us-east-1" region option, I get "The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2'" error". But I do not know a bucket location in advance.

AWSConfigs.S3Config.UseSignatureVersion4 = true;
string location;

using (var tmpS3Client = new AmazonS3Client(accessInfo.AccessKey, accessInfo.SecretKey, RegionEndpoint.USEast1))
{
  var bucketLocationRequest = new GetBucketLocationRequest
  {
    BucketName = config.BucketName
  };
  GetBucketLocationResponse bucketLocationResponse = tmpS3Client.GetBucketLocation(bucketLocationRequest);
  location = bucketLocationResponse.Location.Value;
}
about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda