Deploying Single Container Static App with Docker & Travis CI on AWS Elastic Beanstalk

21 / 27

Please login to comment

8 Comments

Hi Team,

Getting the below error while creating the .travis.yml file and pushed to the git main repo. Could you please suggest how to make it resolve .

  Upvote    Share

Hi,

The error says access is denied. Please make sure to crete all the necessary keys/permissions for S3. Feel free to review the videos for eteer comprehension.

Thanks.

  Upvote    Share

What I am suspecting is while creating the IAM user while I have tried to give the policies, I am unable to find the "AWSelasticBeanStalkFullAcess".

where I have chosen AdministratorAccess-AWSElasticBeanStalk. Could you advise that may cause this access issue ?

 

  Upvote    Share

Yes, with that we need to give the S3 full access also otherwise it will give the same error.

 We need to make the slide updated with the correct policies to choose while creating IAM user in AWS.

 1  Upvote    Share

You have to be patient with AWS to get everything including user access to get activated.

  Upvote    Share

here is the code used in .travis.yml. What could be the reason for NOT being able to deploy this on s3?

language: generic

services: 
  - docker

deploy: 
  provider: elasticbeanstalk
  region: ap-south-1
  app: "myfirstapp"
  env: "Myfirstapp-env"

  access_key_id: $AWS_ACCESS_KEYS
  secret_access_key: $AWS_SECRET_KEYS

  bucket_name: "myfirstapp-bucket"

  bucket_path: "docker"

  on:
    branch: main

 

screenshot:

  Upvote    Share

Resolved AWS access issue...Pls ignore

  Upvote    Share