cloud-governance 1.1.359__py3-none-any.whl → 1.1.361__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cloud_governance/main/environment_variables.py +10 -7
- cloud_governance/main/main.py +1 -1
- {cloud_governance-1.1.359.dist-info → cloud_governance-1.1.361.dist-info}/METADATA +1 -1
- {cloud_governance-1.1.359.dist-info → cloud_governance-1.1.361.dist-info}/RECORD +7 -7
- {cloud_governance-1.1.359.dist-info → cloud_governance-1.1.361.dist-info}/WHEEL +0 -0
- {cloud_governance-1.1.359.dist-info → cloud_governance-1.1.361.dist-info}/licenses/LICENSE +0 -0
- {cloud_governance-1.1.359.dist-info → cloud_governance-1.1.361.dist-info}/top_level.txt +0 -0
|
@@ -92,13 +92,15 @@ class EnvironmentVariables:
|
|
|
92
92
|
self._environment_variables_dict['account'] = self.get_aws_account_alias_name().upper().replace(
|
|
93
93
|
'OPENSHIFT-', '')
|
|
94
94
|
self._environment_variables_dict['policy'] = EnvironmentVariables.get_env('policy', '')
|
|
95
|
-
|
|
96
|
-
self._environment_variables_dict['
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
# cost_usage_reports - athena queries on pair account, spot and graviton usage
|
|
96
|
+
self._environment_variables_dict['non_cluster_policies'] = ['instance_run', 'unattached_volume', 'cluster_run',
|
|
97
|
+
'ip_unattached', 'unused_nat_gateway',
|
|
98
|
+
'instance_idle',
|
|
99
|
+
'ec2_stop', 'ebs_in_use', 'database_idle',
|
|
100
|
+
's3_inactive',
|
|
101
|
+
'empty_roles',
|
|
102
|
+
'zombie_snapshots', 'skipped_resources',
|
|
103
|
+
'monthly_report', 'optimize_resources_report']
|
|
102
104
|
es_index = 'cloud-governance-policy-es-index'
|
|
103
105
|
self._environment_variables_dict['cost_policies'] = ['cost_explorer', 'cost_over_usage', 'cost_billing_reports',
|
|
104
106
|
'cost_explorer_payer_billings', 'spot_savings_analysis']
|
|
@@ -130,6 +132,7 @@ class EnvironmentVariables:
|
|
|
130
132
|
self._environment_variables_dict['start_date'] = EnvironmentVariables.get_env('start_date', '')
|
|
131
133
|
self._environment_variables_dict['end_date'] = EnvironmentVariables.get_env('end_date', '')
|
|
132
134
|
self._environment_variables_dict['granularity'] = EnvironmentVariables.get_env('granularity', 'DAILY')
|
|
135
|
+
# ['User', 'Budget', 'Project', 'Manager']
|
|
133
136
|
self._environment_variables_dict['cost_explorer_tags'] = EnvironmentVariables.get_env('cost_explorer_tags',
|
|
134
137
|
'{}')
|
|
135
138
|
|
cloud_governance/main/main.py
CHANGED
|
@@ -229,7 +229,7 @@ def main():
|
|
|
229
229
|
run_cloud_resource_orchestration()
|
|
230
230
|
else:
|
|
231
231
|
non_cluster_polices_runner = None
|
|
232
|
-
is_non_cluster_polices_runner = policy in environment_variables_dict.get('
|
|
232
|
+
is_non_cluster_polices_runner = policy in environment_variables_dict.get('non_cluster_policies')
|
|
233
233
|
if is_non_cluster_polices_runner:
|
|
234
234
|
non_cluster_polices_runner = ZombieNonClusterPolicies()
|
|
235
235
|
|
|
@@ -143,10 +143,10 @@ cloud_governance/common/utils/configs.py,sha256=8ry4UQT9s_GUivhrCdwS0vOWYN6OJIHD
|
|
|
143
143
|
cloud_governance/common/utils/json_datetime_encoder.py,sha256=_-jzRTe0UqAKTn2E9qaU8SYIxHUoRA5ElWuVA0Y54Xw,338
|
|
144
144
|
cloud_governance/common/utils/utils.py,sha256=ZUsi4ax2XhDIV-EQ5kJt5Ppd72kmm2psqcg1cNDZrvc,4349
|
|
145
145
|
cloud_governance/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
146
|
-
cloud_governance/main/environment_variables.py,sha256=
|
|
146
|
+
cloud_governance/main/environment_variables.py,sha256=Hn4rTIF8w4calJZC1Joz9mlsAZ7y9OQsb_30gDsiNd8,28528
|
|
147
147
|
cloud_governance/main/environment_variables_exceptions.py,sha256=UR0Ith0P0oshsDZdJRlRq8ZUTt0h8jFvUtrnP4m4AIY,437
|
|
148
148
|
cloud_governance/main/es_uploader.py,sha256=6Ify5CS2NtUF1xXZ-rMwpYxVzDKfEZhv2vogWFltt98,10656
|
|
149
|
-
cloud_governance/main/main.py,sha256=
|
|
149
|
+
cloud_governance/main/main.py,sha256=4TBiCBO_1z8KpGXb8brPKBmv3jHBl8fl_-Sb80ctYno,18880
|
|
150
150
|
cloud_governance/main/main_common_operations.py,sha256=YbBJF6Smk3YKhEibnn-fIWu1oKP0pSGIM1WnSXFcBuo,366
|
|
151
151
|
cloud_governance/main/run_cloud_resource_orchestration.py,sha256=Jo7-KDqxrIo8uioyTFCohUHse4uqdEt2ZFnHlX2u57g,776
|
|
152
152
|
cloud_governance/main/main_oerations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -263,8 +263,8 @@ cloud_governance/policy/policy_runners/elasticsearch/__init__.py,sha256=47DEQpj8
|
|
|
263
263
|
cloud_governance/policy/policy_runners/elasticsearch/upload_elastic_search.py,sha256=pOwUJWXjJbyTy8iv3Ap8xJGnqQe-5lZgoR8-vGfAVos,1881
|
|
264
264
|
cloud_governance/policy/policy_runners/ibm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
265
265
|
cloud_governance/policy/policy_runners/ibm/policy_runner.py,sha256=V0E_f7F3hXit0aSq4BlfX1Jd4vjR2NEvOWsJ5upvZ4o,1302
|
|
266
|
-
cloud_governance-1.1.
|
|
267
|
-
cloud_governance-1.1.
|
|
268
|
-
cloud_governance-1.1.
|
|
269
|
-
cloud_governance-1.1.
|
|
270
|
-
cloud_governance-1.1.
|
|
266
|
+
cloud_governance-1.1.361.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
267
|
+
cloud_governance-1.1.361.dist-info/METADATA,sha256=Ow64J_ng2kB01f6A1i9R07No3Z5SXu1rGLfWOLeofGc,11364
|
|
268
|
+
cloud_governance-1.1.361.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
|
269
|
+
cloud_governance-1.1.361.dist-info/top_level.txt,sha256=jfB1fgj7jvx3YZkZA4G6hFeS1RHO7J7XtnbjuMNMRww,17
|
|
270
|
+
cloud_governance-1.1.361.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|