Unable to upload file from Elastic Beanstalk to s3 due to access denied

rahulserver

Here is my bucket policy:

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Sid": "AddPerm",
            "Effect": "Allow",
            "Principal": "*",
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::spmgr/*"
        },
        {
            "Sid": "AllowEBSService",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::823510892997:role/service-role/aws-elasticbeanstalk-service-role"
            },
            "Action": "*",
            "Resource": [
                "arn:aws:s3:::spmgr",
                "arn:aws:s3:::spmgr/*"
            ]
        }
    ]
}

On attempting to upload file from my elastic beanstalk worker instance, I get Access denied error. (Though note that the same code on my local dev machine is able to successfully upload the file) So how do I fix it?

Marcin

aws-elasticbeanstalk-service-role is for EB service itself. For your application you have to provide role associated with your Elastic Beanstalk instance profile. You have to check what role your EB instances is using.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From

AWS Golang S3 manager upload: Access denied

From

How to fix 'Access Denied' while deleting empty S3 Elastic Beanstalk?

From Dev

Deploy war from S3 to AWS Elastic Beanstalk

From Dev

Permission denied while elastic beanstalk is retrieving S3 file

From Dev

Send File S3 Access Denied

From Dev

Ruby S3 "Access Denied" error when calling upload_file with ACL

From Dev

How to access to docker config file in S3 bucket from Elastic Beanstalk instance

From Dev

Access RDS from Elastic Beanstalk Instance in VPC

From Dev

cant upload files to s3 with awscli - access denied

From Dev

Amazon S3 File Permissions, Access Denied when copied from another account

From Dev

S3 bucket access denied from Jenkins

From Dev

AWS Elastic Beanstalk unable to access AWS MSK

From Dev

Getting access denied error on uploading the file to Amazon S3

From Dev

How to solve s3 access denied on file added to s3 bucket from another account?

From Dev

Unable to connect to RDS from Elastic Beanstalk Docker

From Dev

Elastic Beanstalk deployment failing due to .ebextensions File

From Dev

How to manually upload static content with elastic beanstalk and s3

From Dev

Amazon S3 JSON File - Access Denied

From Dev

Spring AWS: Access denied error when deploying war on Elastic Beanstalk

From Dev

Permission Denied Access S3 file from Zeppelin installed on EMR

From Dev

Access S3 in cron job in docker on Elastic Beanstalk

From Dev

unable to create database due access denied

From Dev

enable access to elastic beanstalk from only from specific IP's

From Dev

serverless s3 upload access denied

From Dev

Unable to access Elastic Beanstalk (single instance) from custom domain HTTPS

From Dev

AWS upload file to S3 Access Denied with user who has full s3 access - React Native

From Dev

use jar file from s3 bucket in elastic beanstalk

From Dev

Getting Access Denied when trying to upload to s3 Bucket

From Dev

FIle upload from browser to S3 which has block public access

Related Related

  1. 1

    AWS Golang S3 manager upload: Access denied

  2. 2

    How to fix 'Access Denied' while deleting empty S3 Elastic Beanstalk?

  3. 3

    Deploy war from S3 to AWS Elastic Beanstalk

  4. 4

    Permission denied while elastic beanstalk is retrieving S3 file

  5. 5

    Send File S3 Access Denied

  6. 6

    Ruby S3 "Access Denied" error when calling upload_file with ACL

  7. 7

    How to access to docker config file in S3 bucket from Elastic Beanstalk instance

  8. 8

    Access RDS from Elastic Beanstalk Instance in VPC

  9. 9

    cant upload files to s3 with awscli - access denied

  10. 10

    Amazon S3 File Permissions, Access Denied when copied from another account

  11. 11

    S3 bucket access denied from Jenkins

  12. 12

    AWS Elastic Beanstalk unable to access AWS MSK

  13. 13

    Getting access denied error on uploading the file to Amazon S3

  14. 14

    How to solve s3 access denied on file added to s3 bucket from another account?

  15. 15

    Unable to connect to RDS from Elastic Beanstalk Docker

  16. 16

    Elastic Beanstalk deployment failing due to .ebextensions File

  17. 17

    How to manually upload static content with elastic beanstalk and s3

  18. 18

    Amazon S3 JSON File - Access Denied

  19. 19

    Spring AWS: Access denied error when deploying war on Elastic Beanstalk

  20. 20

    Permission Denied Access S3 file from Zeppelin installed on EMR

  21. 21

    Access S3 in cron job in docker on Elastic Beanstalk

  22. 22

    unable to create database due access denied

  23. 23

    enable access to elastic beanstalk from only from specific IP's

  24. 24

    serverless s3 upload access denied

  25. 25

    Unable to access Elastic Beanstalk (single instance) from custom domain HTTPS

  26. 26

    AWS upload file to S3 Access Denied with user who has full s3 access - React Native

  27. 27

    use jar file from s3 bucket in elastic beanstalk

  28. 28

    Getting Access Denied when trying to upload to s3 Bucket

  29. 29

    FIle upload from browser to S3 which has block public access

HotTag

Archive