Issue
- You are trying to integrate AWS S3 bucket with your Liferay Application.
- You have a dedicated IAM user, Access Key, Secret Key for the bucket.
- You are getting the below error.
“ERROR:
” com.liferay.portal.kernel.exception.SystemException: org.jets3t.service.S3ServiceException: The action Create Object in bucket cannot be performed with an invalid bucket: null””
Resolution
- Makesure the below policy is set for the IAM user.
- Replace “jobnix-bucket” with your bucket name.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListAllMyBuckets" ], "Resource": "*" }, { "Effect": "Allow", "Action": [ "s3:*" ], "Resource": [ "arn:aws:s3:::jobnix-bucket", "arn:aws:s3:::jobnix-bucket/*" ] } ] }






