amazon-elastic-beanstalk

Deploying Docker to AWS Elastic Beanstalk — how to forward port to host? (port binding)

旧街凉风 提交于 2021-02-16 14:56:46
问题 I have a project set up with CircleCI that I am using to auto-deploy to Elastic Beanstalk. My EBS environment is a single container, auto-scaling, web environment. I am trying to run a service that listens on raw socket port 8080. My Dockerfile: FROM golang:1.4.2 ... EXPOSE 8080 My Dockerrun.aws.json.template: { "AWSEBDockerrunVersion": "1", "Authentication": { "Bucket": "<bucket>", "Key": "<key>" }, "Image": { "Name": "project/hello:<TAG>", "Update": "true" }, "Ports": [ { "ContainerPort":

Running cron jobs for node.js in EBS worker environment via cron.yaml file

孤街浪徒 提交于 2021-02-11 15:54:54
问题 I am trying to configure cron jobs for a node project and uploading on a ebs worker environment. Here is my cron.yaml file when i upload this worker tier project to worker tier environment on ebs, i get the following error, [Instance: i-02c855ffd34efcc26] Command failed on instance. Return code: 1 Output: Failed of parsing file 'cron.yaml', because: key not found: "cron" - (AWS::EB::SQSD::ScheduleParser::ScheduleFileError). Hook /opt/elasticbeanstalk/addons/sqsd/hooks/start/02-start-sqsd.sh

AWS EBS runs into “504 Gateway Time-out”

早过忘川 提交于 2021-02-11 15:14:16
问题 I'm new to using AWS EBS and ECS, so please bear with me if I ask questions that might be obvious for others. To the issue: I've got a single-container Node/Express application that runs on EBS. The local docker container works as expected. On EBS, I can access one endpoint of the API and get the expected output. For the second endpoint, which runs longer (around 10-15 seconds) I get no response and run after 60 seconds into a time out: "504 Gateway Time-out". I wonder how I would approach

Bitbucket Pipelines - No Application Version named found

余生颓废 提交于 2021-02-11 14:53:29
问题 I'm trying to deploy django project to elasticbeanstalk using bitbucket pipelines. Here's my config image: python:3.7.2 pipelines: branches: master: - step: script: - pipe: atlassian/aws-elasticbeanstalk-deploy:0.2.5 variables: AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION APPLICATION_NAME: $APPLICATION_NAME COMMAND: $COMMAND ENVIRONMENT_NAME: $ENVIRONMENT_NAME VERSION_LABEL: ${ENVIRONMENT_NAME}_${BITBUCKET_COMMIT:0

AWS EB undefined RDS_HOSTNAME with Database hosts array empty

百般思念 提交于 2021-02-11 14:40:02
问题 Currently in a Laravel project using AWS EB with RDS. When I run php artisan migrate --seed then I get PHP Notice: Undefined index: RDS_HOSTNAME in /var/app/current/config/database.php on line 5 PHP Notice: Undefined index: RDS_USERNAME in /var/app/current/config/database.php on line 6 PHP Notice: Undefined index: RDS_PASSWORD in /var/app/current/config/database.php on line 7 PHP Notice: Undefined index: RDS_DB_NAME in /var/app/current/config/database.php on line 8 and Database hosts array is

AWS EB undefined RDS_HOSTNAME with Database hosts array empty

懵懂的女人 提交于 2021-02-11 14:35:34
问题 Currently in a Laravel project using AWS EB with RDS. When I run php artisan migrate --seed then I get PHP Notice: Undefined index: RDS_HOSTNAME in /var/app/current/config/database.php on line 5 PHP Notice: Undefined index: RDS_USERNAME in /var/app/current/config/database.php on line 6 PHP Notice: Undefined index: RDS_PASSWORD in /var/app/current/config/database.php on line 7 PHP Notice: Undefined index: RDS_DB_NAME in /var/app/current/config/database.php on line 8 and Database hosts array is

Copying a file from S3 into my codebase when using Elastic Beanstalk

孤人 提交于 2021-02-11 13:56:00
问题 I have the following script: Parameters: bucket: Type: CommaDelimitedList Description: "Name of the Amazon S3 bucket that contains your file" Default: "my-bucket" fileuri: Type: String Description: "Path to the file in S3" Default: "https://my-bucket.s3.eu-west-2.amazonaws.com/oauth-private.key" authrole: Type: String Description: "Role with permissions to download the file from Amazon S3" Default: "aws-elasticbeanstalk-ec2-role" files: /var/app/current/storage/oauth-private.key: mode:

End of script output before headers: wsgi.py deploying python django to AWS EB

£可爱£侵袭症+ 提交于 2021-02-11 01:41:14
问题 I can't get the Django app to deploy to AWS EB. I'm deploying an Django 1.7 app. The readout from the log files is as follows. I only get an internal server error and have no idea how to fix this. Has anyone run into this before? ------------------------------------- /opt/python/log/supervisord.log ------------------------------------- 2016-05-03 15:22:57,677 CRIT Supervisor running as root (no user in config file) 2016-05-03 15:22:57,690 INFO RPC interface 'supervisor' initialized 2016-05-03

End of script output before headers: wsgi.py deploying python django to AWS EB

限于喜欢 提交于 2021-02-11 01:39:47
问题 I can't get the Django app to deploy to AWS EB. I'm deploying an Django 1.7 app. The readout from the log files is as follows. I only get an internal server error and have no idea how to fix this. Has anyone run into this before? ------------------------------------- /opt/python/log/supervisord.log ------------------------------------- 2016-05-03 15:22:57,677 CRIT Supervisor running as root (no user in config file) 2016-05-03 15:22:57,690 INFO RPC interface 'supervisor' initialized 2016-05-03

End of script output before headers: wsgi.py deploying python django to AWS EB

最后都变了- 提交于 2021-02-11 01:35:31
问题 I can't get the Django app to deploy to AWS EB. I'm deploying an Django 1.7 app. The readout from the log files is as follows. I only get an internal server error and have no idea how to fix this. Has anyone run into this before? ------------------------------------- /opt/python/log/supervisord.log ------------------------------------- 2016-05-03 15:22:57,677 CRIT Supervisor running as root (no user in config file) 2016-05-03 15:22:57,690 INFO RPC interface 'supervisor' initialized 2016-05-03