Coder Social home page Coder Social logo

Comments (6)

lancedikson avatar lancedikson commented on July 30, 2024 4

Agree. I'm even overwhelmed with the fact that it doesn't take those properties as env variables.

from amazon-kinesis-client-ruby.

cbatson avatar cbatson commented on July 30, 2024 1

You can use ERB to achieve this. Example:

properties_body = ERB.new(IO.read(Rails.root.join('config/consumer.properties.erb'))).result
properties_file = Rails.root.join('tmp/consumer.properties')
IO.write(properties_file, properties_body)

Then in the consumer.properties.erb file

streamName = <%= ENV['KCL_STREAM_NAME'] %>

from amazon-kinesis-client-ruby.

jqr avatar jqr commented on July 30, 2024

Yeah I ended up making a script to generate the properties file dynamically using a template so we could have 4 apps all use the same one. I don't have access to that code any more but IIRC you could have it read from STDIN instead of writing to the filesystem.

from amazon-kinesis-client-ruby.

Cory-Bradshaw avatar Cory-Bradshaw commented on July 30, 2024

Thank you for reporting this feature request. If you or other customers can leave more details on how this impacts your workflows and +1 this issue to help us plan and prioritize this work.

from amazon-kinesis-client-ruby.

akshaypinto avatar akshaypinto commented on July 30, 2024

+1

from amazon-kinesis-client-ruby.

skcc321 avatar skcc321 commented on July 30, 2024

+1

from amazon-kinesis-client-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.