Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

93
Views
Permisos heredados de S3 u otra solución para el acceso múltiple entre cuentas

Estoy tratando de configurar un S3 Access Setup un poco más complicado en Amazon Web Services S3.

El entorno consta de lo siguiente: Account A - User/Role X Account B - User/Role Y Account C - User/Role Z - Bucket 1

Usuario/Rol X, Y y Z tienen adjunta la política "AdminstratorAccess": { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "*", "Resource": "*" } ] }

En el depósito 1 se asigna la siguiente política de depósito: { "Version": "2012-10-17", "Statement": [ { "Sid": "AddPermGet", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::ACCCOUNT-B:user/someuser" ] }, "Action": [ "s3:PutObject", "s3:PutObjectAcl" ], "Resource": "arn:aws:s3:::s3bucket/*" }, { "Sid": "AddPermGet", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::ACCCOUNT-A:user/someuser" ] }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::s3bucket/*" }, { "Sid": "AddPermList", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::ACCCOUNT-A:user/someuser" ] }, "Action": "s3:ListBucket", "Resource": "arn:aws:s3:::s3bucket" } ] }

Definición: la Account C is Owner of Bucket 1

Mis Pruebas:

uploading a file with user/role Z of Account C in Bucket 1 --> accessible for everyone granted in bucket policy --> User X and Z can access the file uploading a file with user/role Y of Account B to Bucket 1 --> accessible only for user/role Y regardles of bucket policy content uploading a file with user/role Y of Account B to Bucket 1 with "bucket-owner-full-control" (as defined in http://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) --> accessible only for user/role Y and Z - but X gets: fatal error: An error occured (403) when calling the HeadObject operation: Forbidden. A list bucket works for all Users including X.

Me gustaría llegar a que un archivo cargado por el usuario/función Y de la cuenta B en el depósito 1 tenga el mismo comportamiento que el usuario/función Z de la cuenta C (el propietario del depósito) cargaría el archivo. Claramente: necesito acceso definido por la Política, no por el Archivo en sí. ¿Es posible habilitar la "herencia"?

Saludos, Matías

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!