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

405
Vistas
Add tags to an existing S3 object using the ruby AWS SDK

AWS does let you add tags to an existing S3 bucket, using the console, or this http api for instance: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectTagging.html

But rather than use the HTTP API directly, is there any way to use the ruby AWS SDK v3 to add (or remove?) tags to an existing S3 object?

I haven't been able to figure it out.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

OK, answering my question, I eventually found a method on Aws::S3::Client

https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html#put_object_tagging-instance_method

s3_client = Aws::S3::Client.new
s3_client.put_object_tagging({
                bucket: "bucket_name",
                key: "some/key.jpg",
                tagging: {
                  tag_set: [
                    {
                      key: "tag-name",
                      value: "tag value",
                    }
                  ]
                }
})

i was expecting there to be a method on Aws::S3::Bucket or Aws::S3::Object, but if there is I can't figure it out! But I have verified this one on Aws::S3::Client as working for me.

over 4 years ago · Santiago Trujillo Denunciar
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