dignoe / whenever-elasticbeanstalk

Allows you to run cron jobs easily on one or all AWS Elastic Beanstalk instances.
MIT License
48 stars 35 forks source link

Parse config file with ERB #11

Closed lime closed 10 years ago

lime commented 10 years ago

Use case: credentials stored in env vars can be included in the config file with ERB.

# config/whenever-elasticbeanstalk.yml

staging:
  access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
  secret_access_key: <%= ENV['AWS_SECRET_KEY'] %>
  region: 'eu-west-1'
production:
  access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
  secret_access_key: <%= ENV['AWS_SECRET_KEY'] %>
  region: 'eu-west-1'
jufemaiz commented 10 years ago

@lime I have done further work on this to use EC2 Instance Roles. Can you please verify my branches are working as required?

lime commented 10 years ago

@jufemaiz I'd be happy to, as long as I know where to look. :) It looks like you're referring to https://github.com/dignoe/whenever-elasticbeanstalk/pull/10 and probably https://github.com/jufemaiz/whenever-elasticbeanstalk/commit/3c765459f8770abd5819031087dbf7f64fe1d8b9?

We will soon be moving our app to the new Ruby 2.0 / Puma containers, and will probably use your branch for that. I'll comment on #10 when I get to it, but that might have to wait until I'm back from my vacation. :P

jufemaiz commented 10 years ago

@lime thanks! Yep, master branch at https://github.com/jufemaiz/whenever-elasticbeanstalk