AWS Elastic Beanstalk
: Development
및 Production
에 두 개의 환경이 있습니다.AWS Elastic Beanstalk : 특정 환경에 대한 확장.
.ebextensions/app.config
은 Production
환경에서만 실행하고 싶습니다. 그럴 수있는 방법은 무엇입니까?
의 app.config : 나는 당신이 생각하고있는 방법으로 그것을 할 수있는 간단한 방법이 있다고 생각하지 않습니다
container_commands:
01-command:
command: "crontab .ebextensions/cronjob"
leader_only: true
나에게 잘 어울려요! – tnichols
AWS는 container 명령에 'test'옵션을 추가 했으므로 crontab.sh의 if 문을 leader_only 다음에 app.config로 옮길 수 있습니다 :'test : '[ "$ PARAM1"== "MyAppEnv-Production"]'' – choobablue