Cómo configurar la política json en los permisos del depósito s3 para otorgar solo acceso "s3:ListBucket" al IdentityPoolId siguiente.
"Acción": "s3:ListBucket", "Recurso": "arn:aws:s3:::New-customers", luego otorga acceso público, pero desea restringir y solo el acceso disponible a IdentityPoolId
var bucketName = "New-customers"; var bucketRegion = "ap-south-1"; var IdentityPoolId = "ap-south-1:xxxxxxxxxxxxxxxxxxxxxxxx"; AWS.config.update({ region: bucketRegion, credentials: new AWS.CognitoIdentityCredentials({ IdentityPoolId: IdentityPoolId }) }); var s3 = new AWS.S3({ apiVersion: '2006-03-01', params: {Bucket: bucketName} }); AWS.config.update({correctClockSkew: true});