I want to upload files from my Java Spring application to S3 bucket.

After configure credentials in ./aws/credentials this work for me on localhost.

But, I tried on Elastic Beanstalk but not working. I receive the message "Permission denied".

I configure the aws-elasticbeanstalk-ec2-role to grant access to AmazonS3FullAccess, and configure enviroment properties from Sowtware configuration on Elastic Beanstalk application.

My code to initialize AmazonClient:

`this.s3client = AmazonS3ClientBuilder.standard().withForceGlobalBucketAccessEnabled(true)
 .build();`

aws-elasticbeanstalk-ec2-role Configuration:

[View here](https://i.stack.imgur.com/q8PnB.png)

Am I skipping something?