I use S3 to store video records from Twilio Services using the I AM account
After storing some objects it stopped receiving any new objects and displays in Storage Lens that it uses 100% of its storage (258.2 MB) (271 objects)
Here is the policy for I AM account
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "UploadUserDenyEverything",
"Effect": "Deny",
"NotAction": "*",
"Resource": "*"
},
{
"Sid": "UploadUserAllowPutObject",
"Effect": "Allow",
"Action": [
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::bucketname/folder/*"
],
"Condition": {
"StringEquals": {
"s3:x-amz-acl": [
"public-read"
]
}
}
}
]
}
I got this error in twilio error log
Access denied to external S3 bucket configured in recording settings: Access denied to external S3 bucket configured in recording settings. Review your account's recording settings. The media will not be uploaded until the configuration has been fixed.
Any help would be appreciated.
Thank you for your answer I Tried using CLI and get access denied then I edited the permissions and it works right now