amazon-elastic-beanstalk

Session stickiness on Amazon Web Services

半城伤御伤魂 提交于 2020-01-11 15:43:31
问题 I'm a bit confused about the use of the session stickiness on Amazon Web Services. When I deploy my java web application using Amazon Elastic Beanstalk, I can choose to enable the session stickiness and then specify a cookie expiration period. My application uses cookies for the session (JSESSIONID) as well as for other small things. Most of the website is accessible only after logging in (I use Spring security to manage it). The website will run on up to 25 small EC2 instances. Should I

Can I use Homebrew to install the latest AWS EB CLI?

微笑、不失礼 提交于 2020-01-11 09:18:14
问题 Homebrew appears to install an older version (unsupported) of the AWS EB tools. Is there a way to get Homebrew to install the current ones? (I'm new to Homebrew.) 回答1: Homebrew relies on volunteers to keep the formulas updated. If you notice an outdated formula, please submit a bug or pull request. 回答2: I can confirm that brew install awscli works well on macOS Sierra. 来源: https://stackoverflow.com/questions/27747455/can-i-use-homebrew-to-install-the-latest-aws-eb-cli

Start/stop sqsd daemon on Elastic Beanstalk to view SQS queue messages

。_饼干妹妹 提交于 2020-01-11 05:08:07
问题 I would like to view SQS messages before they get picked up by sqsd on my Elastic Beanstalk intstance. Is there a way, once ssh'ed into the instance, that sqsd can be stopped / started as a service all together? 回答1: For the purpose of debugging you may stop sqsd by running sudo service aws-sqsd stop on the instance. You can check the status by running sudo service aws-sqsd status . Note this is not recommended for a production service but for the purpose of debugging you may try this. 来源:

Can you run a rails console or rake command in the elastic beanstalk environment?

拟墨画扇 提交于 2020-01-10 06:44:06
问题 I have set up a RoR environement on AWS' elastic beanstalk. I am able to ssh into my EC2 instance. My home directory is / home/ec2-user , which is effectively empty. If I move up a directory, there is also a /home/webapp directory that i do not have access to. Is there a way to run a rake command or rails console on my elastic beanstalk instance? If I type rails console I get Usage: rails new APP_PATH [options] If I type RAILS_ENV=production bundle exec rails console , I get " Could not

Configure apache on elastic beanstalk

◇◆丶佛笑我妖孽 提交于 2020-01-09 06:19:11
问题 I'm developing with django on elastic beanstalk and I want to make two changes to apache configuration: 1. redirect www.domain.com to domain.com 2. redirect http://domain.com to https://domain.com I don't have experience with apache configuration, googling it gave me the idea that I should put RewriteRules in .htaccess file. example: How to force https on amazon elastic beanstalk without failing the health check I couldn't find instructions on how to do it with elastic beanstalk configuration

Configure apache on elastic beanstalk

不羁岁月 提交于 2020-01-09 06:16:30
问题 I'm developing with django on elastic beanstalk and I want to make two changes to apache configuration: 1. redirect www.domain.com to domain.com 2. redirect http://domain.com to https://domain.com I don't have experience with apache configuration, googling it gave me the idea that I should put RewriteRules in .htaccess file. example: How to force https on amazon elastic beanstalk without failing the health check I couldn't find instructions on how to do it with elastic beanstalk configuration

Bash: Grab part of string from a command line output

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 19:38:41
问题 I am running a command in CentOS that gives me an output of a string and I want to grab a certain part of that output and set it to a variable. I run the command ebi-describe-env. My output as follows: ApplicationName | CNAME | DATECreated | DateUpdated | Description | EndpointURL | EnvironmentID | EnvironmentName | Health | Stack | Status | TemplateName | Version Label -------------------------- Web App | domain.com | 2012-02-23 | 2012-08-31 | | anotherdomain.com | e-8sgkf3eqbj | Web-App

Django Celery Elastic Beanstalk supervisord no such process error

为君一笑 提交于 2020-01-06 18:11:21
问题 My celery_config.txt in file script in .ebextensions #!/usr/bin/env bash # Get django environment variables celeryenv=`cat /opt/python/current/env | tr '\n' ',' | sed 's/export //g' | sed 's/$PATH/%(ENV_PATH)s/g' | sed 's/$PYTHONPATH//g' | sed 's/$LD_LIBRARY_PATH//g'` celeryenv=${celeryenv%?} # Create celery configuraiton script celeryconf="[program:celeryd-worker] ; Set full path to celery program if using virtualenv command=/opt/python/run/venv/bin/celery worker -A wellfie --loglevel=INFO

How do I stop Elastic Beanstalk (apparently) removing my downloaded file?

老子叫甜甜 提交于 2020-01-06 15:48:42
问题 I have these container commands in an .ebextensions .config file: container_commands: download_geography_data_01: command: "python scripts/download_geography_data.py" download_geography_data_02: command: "file /opt/python/current/app/data/geography/geography.sqlite" And these execute perfectly when I use eb create - the second command is just there to put an entry in the log proving that the first script ran correctly and the file was created. I get a line like this in eb_activity.log,

Configuring a Node.js application to work with Websockets over TCP as well as AWS S3

眉间皱痕 提交于 2020-01-06 05:31:08
问题 I'm working on a Node.js application and installing WebSockets to use with ParseLiveQuery. For the app to work in full, I need HTTPS access for S3, images, etc. and TCP access for the WebSocket. Below is my current setup: And my index.js file var S3Adapter = require('parse-server').S3Adapter; var s3Adapter = new S3Adapter( "myAppMediaServer", { directAccess: true, baseUrl: 'http://myApp12345.cloudfront.net' // This could be your CloudFront URL } ); var api = new ParseServer({ databaseURI: