Questions tagged [ebextensions]

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

131 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
  • 28,161
  • 11
  • 65
  • 105
24
votes
3 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…
20
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: …
19
votes
3 answers

Environment specific ebextensions Beanstalk 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:…
13
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
  • 8,567
  • 8
  • 47
  • 91
10
votes
7 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
  • 9,552
  • 16
  • 69
  • 101
9
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…
8
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…
7
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,807
  • 3
  • 18
  • 29
6
votes
2 answers

AWS Elastic Beanstalk .ebextensions File creation not working (apache config)

Following the instructions at https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/https-singleinstance-php.html I've been trying to add my SSL certificate to allow for https for my single instance environment. I've spent a ridiculous amount of…
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…
4
votes
1 answer

Why can't I write a file with .ebextensions on Elastic Beanstalk?

I can't write a file with .ebextensions in /etc/httpd/conf.d/elasticbeanstalk. I need to write a vhost.conf to add subdomains. I am on I tried many ways : write the file with "files:..." files: "/etc/httpd/conf.d/elasticbeanstalk": mode:…
4
votes
1 answer

How to overwrite Elastic Beanstalk environment variables through ebextensions?

My EB environment has some environment variables that I have set through the AWS web console. However, I'm now looking to have these env variables be set through ebextensions. The problem is that it doesn't look like I am able to overwrite the…
1
2 3
8 9