Skip to content

Instantly share code, notes, and snippets.

@sebolio
Last active April 8, 2024 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sebolio/d5bf850efd89e7f159f5 to your computer and use it in GitHub Desktop.
Save sebolio/d5bf850efd89e7f159f5 to your computer and use it in GitHub Desktop.
Dar permiso a usuario de IAM que vea un Bucket

Aquí el Bucket no tiene ningún permiso y por lo tanto esta policy de IAM será la que los dará.

Con esto le estoy dando sólo permisos de Listar(List), Descargar(Get) y Subir(Put) a un Bucket particular llamado sebpaldos y sus subcarpetas.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:List*",
                "s3:Get*",
                "s3:Delete*",
                "s3:Put*"
            ],
            "Resource": [
                "arn:aws:s3:::sebpaldos",
                "arn:aws:s3:::sebpaldos/*"
            ]
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment