Hi
In my case, i could upload recording files from openvidu ec2 to S3 bucket successfully.
I gave openvidu ec2 instance the ‘Iam role’. The role is as follows
and i write my bucket name like this on .env , without ‘s3://’.
OPENVIDU_PRO_AWS_S3_BUCKET=my_buckey_name
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “VisualEditor0”,
“Effect”: “Allow”,
“Action”: [
“s3:GetLifecycleConfiguration”,
“s3:GetBucketTagging”,
“s3:GetInventoryConfiguration”,
“s3:GetObjectVersionTagging”,
“s3:ListBucketVersions”,
“s3:GetBucketLogging”,
“s3:ListBucket”,
“s3:GetAccelerateConfiguration”,
“s3:GetBucketPolicy”,
“s3:GetObjectVersionTorrent”,
“s3:GetObjectAcl”,
“s3:GetEncryptionConfiguration”,
“s3:GetBucketObjectLockConfiguration”,
“s3:GetBucketRequestPayment”,
“s3:GetAccessPointPolicyStatus”,
“s3:GetObjectVersionAcl”,
“s3:GetObjectTagging”,
“s3:GetMetricsConfiguration”,
“s3:GetBucketOwnershipControls”,
“s3:DeleteObject”,
“s3:GetBucketPublicAccessBlock”,
“s3:GetBucketPolicyStatus”,
“s3:ListBucketMultipartUploads”,
“s3:GetObjectRetention”,
“s3:GetBucketWebsite”,
“s3:GetJobTagging”,
“s3:GetBucketVersioning”,
“s3:GetBucketAcl”,
“s3:GetObjectLegalHold”,
“s3:GetBucketNotification”,
“s3:GetReplicationConfiguration”,
“s3:ListMultipartUploadParts”,
“s3:PutObject”,
“s3:GetObject”,
“s3:GetObjectTorrent”,
“s3:DescribeJob”,
“s3:GetBucketCORS”,
“s3:GetAnalyticsConfiguration”,
“s3:GetObjectVersionForReplication”,
“s3:GetBucketLocation”,
“s3:GetAccessPointPolicy”,
“s3:GetObjectVersion”
],
“Resource”: [
“arn:aws:s3:::<YOUR_S3_BUCKET_NAME>”
]
},
{
“Effect”: “Allow”,
“Action”: [
“s3:GetBucketLocation”,
“s3:ListAllMyBuckets”
],
“Resource”: “arn:aws:s3:::"
},
{
“Sid”: “VisualEditor1”,
“Effect”: “Allow”,
“Action”: [
“s3:GetAccessPoint”,
“s3:GetAccountPublicAccessBlock”,
“s3:ListAllMyBuckets”,
“s3:ListAccessPoints”,
“s3:ListJobs”
],
“Resource”: "”
},
{
“Effect”: “Allow”,
“Action”: [
“s3:ListBucket”
],
“Resource”: [
“arn:aws:s3:::<YOUR_S3_BUCKET_NAME>”
]
},
{
“Effect”: “Allow”,
“Action”: [
“s3:PutObject”,
“s3:GetObject”,
“s3:DeleteObject”
],
“Resource”: [
“arn:aws:s3:::<YOUR_S3_BUCKET_NAME>/*”
]
}
]
}