Questions tagged [ebextensions]

Extensions for AWS Elastic Beanstalk (as defined in the .ebextensions directory of an EB project)

117 questions
25
votes
5 answers

Where to add .ebextensions in a WAR?

Scenario: AWS Elastic Beanstalk Java application .ebextensions currently placed in src/main/resources/.ebextensions Commands are not being executed. Where is the .ebextensions supposed to go in a Java application?
flavian
  • 26,242
  • 10
  • 57
  • 95
15
votes
3 answers

Environment specific ebextensions commands

I have a spring-boot application for which I need to specify graphite server and port (to send metrics). For that to work, I have to install and configure statsd. I do that using the ebextensions file. commands: 01_nodejs_install: command:…
14
votes
1 answer

Env Variable in .ebextensions "files:" section

I defined an environment variable called MY_ENVIRONMENT_VARIABLE in AWS Elastic Beanstalk's Software Configuration tab. Now I would like to use this environment variable in the "files:" section of a .ebextensions config file. Resources: …
12
votes
3 answers

AWS Elastic Beanstalk: How to use environment variables in ebextensions?

We are trying to store environment specific application configuration files in s3. The files are stored in different subdirectories which are named after the environment and also have the environment as part of the file name. Examples…
10
votes
1 answer

Setting up SSH keys for github private repo access on Elastic Beanstalk

My Node.JS project contains references to private NPM repos hosted on github. This works fine locally, but I'm struggling to get this working on Elastic Beanstalk. dependencies: { ... "express": "^4.12.4", "jsonwebtoken": "^5.0.5", …
JHH
  • 6,514
  • 5
  • 28
  • 64
9
votes
2 answers

How do you add chmod +x permission to an AWS Elastic Beanstalk platform hook?

Context I am using Elastic Beanstalk to deploy a very simple test application. I have several packages I want to install using apt. I have included a 01_installations.sh script with the installations in the .platform/hooks/prebuild directory. When I…
8
votes
5 answers

Clean way of adding .ebextensions to Spring Boot Jar using Gradle

Is there a clean way of adding additional root folders to a Spring Boot Jar file generated using the default bootRepackage. In my case I need the .ebextenions folder for AWS beanstalk. I know I can hack it -- for example add another task after…
vicsz
  • 8,822
  • 15
  • 62
  • 94
7
votes
0 answers

How to best use AWS Secrets Manager in ebextensions?

I'm looking to use AWS Secrets Manager to obtain secrets and set them as environment variables on my Elastic Beanstalk instances. I've written a script on an ebextensions file that calls the Secrets Manager CLI to obtain my secret and I use that…
7
votes
1 answer

Using AWS ebextensions, what is the proper way to pass an array of commands per their docs?

Docs I'm trying to pass multiple commands in a conainter_commands entry and keep getting errors. Yet when I pass the same commands as individual entries it works fine. Works: container_commands: 01_remove_old_dump: command: 'rm -f…
5
votes
2 answers

AWS EB + Nginx, update access.log format or create new log

I'm running an app on AWS' Elastic Beanstalk using the configuration Node.js running on 64bit Amazon Linux/4.5.0, with Nginx. I would like to add the request header "X-My-Header" as a field to the access.log. Barring that, I would take creating a…
5
votes
2 answers

Elastic beanstalk require python 3.5

I recently created a new python program using the latest stable release of python (3.5). Unfortunately, AWS EB does not provide a 3.5 base image. I have been trying to configure .ebextensions to get the image to upgrade the python distro as it's…
5
votes
1 answer

AWS Elastic Beanstalk .ebextensions order of precedence

If I apply a setting in two config files in the .ebextensions folder does the last file override the setting in the first file? For example take two files with instance role setting defined: .ebextensions/0001-base.config option_settings: …
rabs
  • 1,737
  • 2
  • 15
  • 29
4
votes
1 answer

Http to Https AWS Elasticbeanstalk

I am using AWS Elasticbeanstalk for my Spring MVC web application. I want to redirect all the request to https. I tried following this How to force https on elastic beanstalk? but this didn't work for me. This code redirects to https but my app…
ponraj
  • 738
  • 1
  • 7
  • 21
4
votes
5 answers

How to Install PHP IMAP Extension on AWS Elastic Beanstalk Using Configuration Files (.ebextensions)?

Does anyone know how to install and enable PHP IMAP Extension on AWS Elastic Beanstalk using configuration files (.ebextensions)? I'm using 64bit Amazon Linux 2017.03 v2.4.0 running PHP 7.0.16 I've tried several ways as follow: 1st Way I've tried…
4
votes
1 answer

AWS Elastic Beanstalk - EB Extensions Not Working

I've done this before a long time ago, but now it's not working... :) I am trying to use EBExtensions in an ElasticBeanstalk application. I created a vanilla Elastic Beanstalk environment with no configuration beyond the defaults. I gave it an…
dsw88
  • 4,102
  • 7
  • 35
  • 47
1
2 3 4 5 6 7 8