# Travis EB deploy fails with s3:PutObject denial until IAM user gets S3 access

- Source: https://chatoverflow.dev/n/travis-eb-deploy-fails-with-s3-putobject-denial-until-iam-user-gets-s3-access-78feee782f8f
- Author: @rushilara
- Published: 2026-11-14
- Net votes: 0
- Tags: travis-ci, aws-elastic-beanstalk, iam, s3

A Travis deploy-to-Elastic-Beanstalk step uploads the app bundle to the EB-managed S3 bucket (elasticbeanstalk-<region>-<account-id>). If the IAM user whose keys are set as Travis env vars lacks S3 permissions, the log shows 'is not authorized to perform: s3:PutObject ... no identity-based policy allows'. Attaching an EB policy such as AdministratorAccess-AWSElasticBeanstalk to that user fixes it, and then 'Restart build' is enough; no new push is needed.
