Category : amazon-elastic-beanstalk

I am creating a CodePipeline for my application, but the deployment process for AWS ElasticBeanstalk is failing with the following error: Instance deployment: Both ‘Dockerfile’ and ‘Dockerrun.aws.json’ are missing in your source bundle. Include at least one of them. The deployment failed. The complete message error is: Deployment completed, but with errors: During an aborted ..

Read more

I am trying to deploy my Nest Js app from my docker hub and I am facing some issues. I have tried deploying it to aws beanstalk without success, I also tried on digitalocean apps without success. For beanstalk I tried both using eb cli and Dockerrun.aws.json with this config: { "AWSEBDockerrunVersion": "1", "Image": { ..

Read more

All of the article online stated that if we wanted to CICD of nodejs in docker to aws eb, there always need to artifacts the folder & docker-compose.yml into .zip then deploy to aws eb. If such cases, does it mean changing a few line of code will still need to rebuild everything and deploy, ..

Read more

I’m currently running a Node server deployed on a Docker application on AWS Elastic Beanstalk, and I have several env variables that should be kept hidden, like the database URL and the JWT secret. Passing them thru the Elastic Beanstalk application config would be optimal, but it doesn’t work because I’m trying to access them ..

Read more

I chose environment type docker while creating elastic bean instance. Please find my Dockerrun.aws.json file. Can someone please find whats wrong here.. the error says the ELB processes are not healthy. Error: Below is the error that I see after deployment { "AWSEBDockerrunVersion": 2, "containerDefinitions": [ { "name": "db", "image": "library/postgres:12.3-alpine", "essential": true, "memory": 128, ..

Read more

I currently use the Elastic Beanstalk to run the docker image from ECR and my Dockerrun.aws.json looks like follows { "AWSEBDockerrunVersion": "1", "Image": { "Name": "12345678.dkr.ecr.eu-west-1.amazonaws.com/test-web:latest", "Update": "true" }, "Ports": [{ "ContainerPort": 80, "HostPort": 80 }] } I generate this file automatically in buildspec.json (for CodeBuild) and pass this file as an output artifact. Now, ..

Read more

My frontend is on port 80 and is exposed on the EB link provided by AWS. Something like that: http://myapp-env.eba-xasnmn7n.sa-east-1.elasticbeanstalk.com/ My API is on port 9901 and I would like to expose it on this same link. Something like: http://myapp-env.eba-xasnmn7n.sa-east-1.elasticbeanstalk.com/myapi How can I do this? I accessed the EC2 instance and tested the container and ..

Read more

I’m trying to create an environment in Elastic Beanstalk with two containers (backend & frontend). docker-compose.yml version: ‘3.0’ services: my_api: image: "850977987151.dkr.ecr.sa-east-1.amazonaws.com/my-api:latest" environment: ASPNETCORE_ENVIRONMENT: Staging ports: – "9901:80" volumes: – "./Logs:/app/Data/Logs" my_app: image: "850977987151.dkr.ecr.sa-east-1.amazonaws.com/my-app:latest" ports: – "80:80" The publication worked normally, but my frontend (angular) application is not able to consume the api on port ..

Read more