Skip to content

Commit

Permalink
decalred the vars to env file (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma authored Dec 20, 2023
1 parent f44b565 commit 33ccd0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloud_governance/main/environment_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def __init__(self):
if not self._environment_variables_dict['AWS_DEFAULT_REGION']:
self._environment_variables_dict['AWS_DEFAULT_REGION'] = 'us-east-2'
self._environment_variables_dict['PUBLIC_CLOUD_NAME'] = EnvironmentVariables.get_env('PUBLIC_CLOUD_NAME', 'AWS')
self._environment_variables_dict['AWS_ACCESS_KEY_ID'] = EnvironmentVariables.get_env('AWS_ACCESS_KEY_ID', '')
self._environment_variables_dict['AWS_SECRET_ACCESS_KEY'] = EnvironmentVariables.get_env('AWS_SECRET_ACCESS_KEY', '')
if EnvironmentVariables.get_env('AWS_ACCESS_KEY_ID', '') and EnvironmentVariables.get_env('AWS_SECRET_ACCESS_KEY', ''):
self._environment_variables_dict['account'] = self.get_aws_account_alias_name().upper().replace('OPENSHIFT-', '')
self._environment_variables_dict['policy'] = EnvironmentVariables.get_env('policy', '')
Expand Down

0 comments on commit 33ccd0c

Please sign in to comment.