Comments (6)
Agree. I'm even overwhelmed with the fact that it doesn't take those properties as env variables.
from amazon-kinesis-client-ruby.
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.
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.
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.
+1
from amazon-kinesis-client-ruby.
+1
from amazon-kinesis-client-ruby.
Related Issues (20)
- timeout option is not working in sample producer HOT 1
- aws-sdk 2.0 HOT 1
- Set log level from command line HOT 2
- Add New KCL Features to Client
- Request for clarification: should we use 1.0.2 or master?
- Struggling to get example consumer working HOT 2
- Is this abandonware? HOT 1
- Native Ruby KCL HOT 5
- KCL 2.0 support? HOT 2
- MultiLang Daemon for KCL 2.0 HOT 1
- GracefulShutdown fails HOT 1
- How does one opt-out of enhanced fan out? HOT 2
- Upgrade Kinesis client HOT 1
- Graceful Shutdown of Workers HOT 1
- Library broken? RSpec tests some are failing. HOT 3
- Usage question regarding the pom file HOT 4
- Community contributions?
- Supported Native Ruby KCLRB HOT 2
- --shards option is not working correctly in sample producer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-kinesis-client-ruby.