Skip to content

Commit

Permalink
finish switching atlas configs (#1098)
Browse files Browse the repository at this point in the history
* finish switching atlas configs

* uat should use uat connect string

* and so should qat...
  • Loading branch information
aaronhelton authored Jun 9, 2023
1 parent 747cfcc commit c7d95c3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dlx_rest/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ class Config(object):
client = boto3.client('ssm')
secret_key = client.get_parameter(Name='metadata_cache_key')['Parameter']['Value']
# Use these value when we're ready to migrate QAT to Atlas.
#connect_string = client.get_parameter(Name='devISSU-admin-connect-string')['Parameter']['Value']
#dbname = 'undlFiles'
connect_string = client.get_parameter(Name='qat-dlx-connect-string')['Parameter']['Value']
dbname = 'qat_undlFiles'
connect_string = client.get_parameter(Name='uatISSU-admin-connect-string')['Parameter']['Value']
dbname = 'undlFiles'
#connect_string = client.get_parameter(Name='qat-dlx-connect-string')['Parameter']['Value']
#dbname = 'qat_undlFiles'
sync_log_collection = 'sync_log'
bucket = 'dev-undl-files'
elif 'DLX_REST_UAT' in os.environ:
environment = 'uat'
client = boto3.client('ssm')
secret_key = client.get_parameter(Name='metadata_cache_key')['Parameter']['Value']
# Use these value when we're ready to migrate UAT to Atlas.
#connect_string = client.get_parameter(Name='uatISSU-admin-connect-string')['Parameter']['Value']
#dbname = 'undlFiles'
connect_string = client.get_parameter(Name='uat-dlx-connect-string')['Parameter']['Value']
dbname = 'uat_undlFiles'
connect_string = client.get_parameter(Name='uatISSU-admin-connect-string')['Parameter']['Value']
dbname = 'undlFiles'
#connect_string = client.get_parameter(Name='uat-dlx-connect-string')['Parameter']['Value']
#dbname = 'uat_undlFiles'
sync_log_collection = 'sync_log'
bucket = 'dev-undl-files'
elif 'DLX_REST_PRODUCTION' in os.environ:
Expand Down

0 comments on commit c7d95c3

Please sign in to comment.