Skip to content

Commit

Permalink
Merge branch 'release/1.24.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
hectcastro committed Dec 31, 2018
2 parents bd56525 + edb1944 commit fc8d1b0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions deployment/cfn/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class Worker(StackNode):
'PublicHostedZoneName': ['global:PublicHostedZoneName'],
'VpcId': ['global:VpcId', 'VPC:VpcId'],
'GlobalNotificationsARN': ['global:GlobalNotificationsARN'],
'HydroShareBaseURL': ['global:HydroShareBaseURL'],
'HydroShareSecretKey': ['global:HydroShareSecretKey'],
'SRATCatchmentAPIURL': ['global:SRATCatchmentAPIURL'],
'SRATCatchmentAPIKey': ['global:SRATCatchmentAPIKey'],
'RollbarServerSideAccessToken':
Expand Down Expand Up @@ -207,6 +209,16 @@ def set_up_stack(self):
Description='ARN for an SNS topic to broadcast notifications'
), 'GlobalNotificationsARN')

self.hydroshare_base_url = self.add_parameter(Parameter(
'HydroShareBaseURL', Type='String',
Description='Base URL for HydroShare portal'
), 'HydroShareBaseURL')

self.hydroshare_secret_key = self.add_parameter(Parameter(
'HydroShareSecretKey', Type='String', NoEcho=True,
Description='Secret key for HydroShare portal integration'
), 'HydroShareSecretKey')

self.srat_catchment_api_url = self.add_parameter(Parameter(
'SRATCatchmentAPIURL', Type='String',
Description='URL for the SRAT Catchment API'
Expand Down Expand Up @@ -422,6 +434,14 @@ def get_cloud_config(self):
' permissions: 0440\n',
' owner: root:mmw\n',
' content: ', self.get_input('RollbarServerSideAccessToken'), '\n', # NOQA
' - path: /etc/mmw.d/env/MMW_HYDROSHARE_BASE_URL\n',
' permissions: 0750\n',
' owner: root:mmw\n',
' content: ', Ref(self.hydroshare_base_url), '\n',
' - path: /etc/mmw.d/env/MMW_HYDROSHARE_SECRET_KEY\n',
' permissions: 0750\n',
' owner: root:mmw\n',
' content: ', Ref(self.hydroshare_secret_key), '\n',
' - path: /etc/mmw.d/env/MMW_SRAT_CATCHMENT_API_URL\n',
' permissions: 0440\n',
' owner: root:mmw\n',
Expand Down

0 comments on commit fc8d1b0

Please sign in to comment.