-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjack-knows.rb
53 lines (52 loc) · 1.96 KB
/
jack-knows.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 3rd party service configurations, aside from in memory/environment auth credentials
# ensure that keys are stored in ~/.aws/credentials as
# [default]
# aws_access_key_id = <>
# aws_secret_access_key = <>
# $DYNAMO_PUBLIC_KEY = ""
# $DYNAMO_PRIVATE_KEY = ""
module Visibility_DataStore
module Visibility_DynamoDB
US_WEST_1 = "us-west-1"
TABLE_SESSIONS_OSIRIS = "SessionsOsiris"
TABLE_SESSION_LOGS_OSIRIS = "SessionsLogsOsiris"
## NOTE: It seems that AWS prefers to use and only use a combination of ~/.aws/credentials and
## NOTE: environment variables with the credentials for access key, secret, AND region
## NOTE: trying to override using aws-sdk ruby seems to improperly override the params
## NOTE: causing a signature failure response from AWS
# #
# # CONFIG Initialize the Aws Config environment
# # Set up the AWS environment based on a config file
# #
# def self.Configure(credentialsDir = File.expand_path("..", Dir.pwd), keyFile = 'dynamoboysprivatekey1.txt')
# keys_file = File.join(credentialsDir, keyFile)
# puts "[Visibility_DataStore::Visibility_DynamoDB] Looking for AWS credentials: " + keys_file
# unless File.exist?(keys_file)
# puts "#{keys_file} dne"
# exit 1
# end
#
# line_number = 0
# File.open(keys_file, 'r') do |f|
# f.each_line do |line|
# case line_number
# when 0
# $DYNAMO_PRIVATE_KEY = line
# when 1
# $DYNAMO_PUBLIC_KEY = line
# end
# line_number += 1
# end
# end
# end
# #
# # CONFIG Initialize the Aws Config environment
# # Set up the AWS environment based on a config file
# #
end
module Visibility_RabbitMQ
ADDRESS_LOOPBACK = "localhost"
ROOT_LOGGING_CHANNEL = "lc"
ROOT_ROUTING_KEY = "root.routing.key"
end
end