Sha256: 1c48eb1e0d2a12dfd0a68ed71ca355ce86a71e0ed3580527b691bf678eae5017
Contents?: true
Size: 779 Bytes
Versions: 1
Compression:
Stored size: 779 Bytes
Contents
#!/opt/rubies/ruby-2.7.5/bin/ruby require 'sqspoller' puts "SQSPoller arguments check" ARGV.each do |arg| puts "arg: #{arg}" end POLLER_CONFIG_FILEPATH = ENV["POLLER_CONFIG_FILEPATH"] FK_ENVIRONMENT = ENV["FK_ENVIRONMENT"] AWS_ACCESS_KEY_ID = ENV["AWS_ACCESS_KEY_ID"] AWS_SECRET_ACCESS_KEY = ENV["AWS_SECRET_ACCESS_KEY"] AWS_REGION = ENV["AWS_REGION"] POLLER_LOGGER_FILEPATH = ENV["POLLER_LOGGER_FILEPATH"] || "/var/log/sqspoller.log" puts "#{POLLER_CONFIG_FILEPATH} - #{FK_ENVIRONMENT} - #{AWS_ACCESS_KEY_ID} - #{AWS_SECRET_ACCESS_KEY} - #{AWS_REGION} - #{POLLER_LOGGER_FILEPATH}" puts "Starting poller" SqsPoller.start_poller POLLER_CONFIG_FILEPATH, "#{FK_ENVIRONMENT}-queues", AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, POLLER_LOGGER_FILEPATH puts "poller done"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fourkites-sqspoller-v2-1.0.0 | bin/sqs_poller_v2 |