Add EBS configuration options

This adds `.ebextension` options to the repository that can control how the beanstalk environment is configured. The two files perform different tasks:

- `sfr-bardo-copyright-development.config` is an empty file for environment variables (empty because at present ENV variables contain secrets that cannot be committed to source control)
- `cron-linux.config` contains configuration details for a nightly cron task that checks for updates from the source git repositories
add-new-regnum-params
Mike Benowitz 2019-07-08 14:29:57 -04:00
parent 386a8515a7
commit b526c072a1
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,18 @@
files:
"/etc/cron.d/mycron":
mode: "000644"
owner: root
group: root
content: |
10 1 * * * root /usr/local/bin/updateNightly.sh
"/usr/local/bin/updateNightly.sh":
mode: "000755"
owner: root
group: root
content: |
#!/bin/bash
while read -r line; do eval "$line"; done < /opt/python/current/env
python3 /opt/python/current/app/main.py --time 86400

View File

@ -0,0 +1,2 @@
option_settings:
aws:elasticbeanstalk:application:environment: