cid-cmd 4.3.1__tar.gz → 4.3.2__tar.gz
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.
- {cid_cmd-4.3.1/cid_cmd.egg-info → cid_cmd-4.3.2}/PKG-INFO +2 -2
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/README.md +2 -2
- cid_cmd-4.3.2/cid/_version.py +2 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/export.py +2 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/cur.py +4 -1
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/cur_proxy.py +7 -9
- {cid_cmd-4.3.1 → cid_cmd-4.3.2/cid_cmd.egg-info}/PKG-INFO +2 -2
- cid_cmd-4.3.1/cid/_version.py +0 -2
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/LICENSE +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/MANIFEST.in +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/__init__.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/base.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/__init__.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/__init__.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cid/compute.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cid/ec2_running_cost.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cid/s3_view.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cid/summary_view.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/co/dataset.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cudos/hourly_view.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cudos/resource_view.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/kpi/kpi_ebs_snap.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/kpi/kpi_ebs_storage_all.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/kpi/kpi_instance_all.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/kpi/kpi_s3_storage_all.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/kpi/kpi_tracker.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/shared/customer_all.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/tao/dataset.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/trends/daily_anomaly_detection.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/trends/monthly_anomaly_detection.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/trends/monthly_bill_by_account.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/dashboard_permissions.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/dashboard_permissions_namespace.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/data_set_permissions.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/data_set_rls_permissions.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/data_source_permissions.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/folder_permissions.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cid/compute_savings_plan_eligible_spend.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cid/ec2_running_cost.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cid/ri_sp_mapping.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cid/s3.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cid/summary_view.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/all_options.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/auto_scale.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/auto_scale_options.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ebs_volume.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ebs_volume_options.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ec2_instance.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ec2_instance_options.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ecs_service.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ecs_service_options.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/idle.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/idle_options.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/lambda.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/lambda_options.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/license.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/license_options.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/rds_database.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/rds_instance_options.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/rds_storage_options.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cudos/hourly_view.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cudos/resource_view.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/first_kpi_instance_mapping_view.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/kpi_ebs_snap_view.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/kpi_ebs_storage_view.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/kpi_instance_all_view.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/kpi_s3_storage_view.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/last_kpi_tracker_view.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/account_map.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/account_map_cur2.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/account_map_dummy.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/aws_accounts.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/aws_regions.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/aws_service_category_map.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/business_units_map.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/cur.yaml +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/customer_all_unlimited.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/payer_account_name_map.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/ta_descriptions.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/tao/glue_table.json +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/tao/ta_org_view.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/trends/daily_anomaly_detection.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/trends/monthly_anomaly_detection.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/trends/monthly_bill_by_account.sql +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/resources.yaml +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/cli.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/commands/__init__.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/commands/command_base.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/commands/init_qs.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/common.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/exceptions.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/__init__.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/account_map.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/athena.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/cloudformation.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/csv2view.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/diff.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/glue.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/iam.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/organizations.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/parameter_store.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/__init__.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/dashboard.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/dashboard_patching.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/dataset.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/datasource.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/definition.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/resource.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/template.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/version.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/randtime.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/s3.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/timezone.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/logger.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/plugin.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/test/python/test_csv2view.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/test/python/test_isolated_parameters.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/test/python/test_merge.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/utils.py +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid_cmd.egg-info/SOURCES.txt +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid_cmd.egg-info/dependency_links.txt +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid_cmd.egg-info/entry_points.txt +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid_cmd.egg-info/requires.txt +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid_cmd.egg-info/top_level.txt +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/pyproject.toml +0 -0
- {cid_cmd-4.3.1 → cid_cmd-4.3.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cid-cmd
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.2
|
|
4
4
|
Summary: Cloud Intelligence Dashboards deployment helper tool
|
|
5
5
|
Home-page: https://github.com/aws-samples/aws-cudos-framework-deployment
|
|
6
6
|
Author: AWS CUDOS Team
|
|
@@ -54,7 +54,7 @@ Cloud Intelligence Dashboards Framework provides AWS customers with [more then 2
|
|
|
54
54
|
* Advanced Dashboards - Require CID Data Collection and CUR
|
|
55
55
|
* Additional Dashboards - Require various custom datasources or created for very specific use cases.
|
|
56
56
|
|
|
57
|
-
We recommend starting with deployment of [Foundational Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboard-foundational.html). Then deploy [Data Collection](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/data-collection.html) and [Advanced Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#advanced-dashboards). Check for [Additional](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#additional
|
|
57
|
+
We recommend starting with deployment of [Foundational Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboard-foundational.html). Then deploy [Data Collection](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/data-collection.html) and [Advanced Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#advanced-dashboards). Check for [Additional](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#additional) Dashboards.
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
[](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/deployment-in-global-regions.html)
|
|
@@ -26,7 +26,7 @@ Cloud Intelligence Dashboards Framework provides AWS customers with [more then 2
|
|
|
26
26
|
* Advanced Dashboards - Require CID Data Collection and CUR
|
|
27
27
|
* Additional Dashboards - Require various custom datasources or created for very specific use cases.
|
|
28
28
|
|
|
29
|
-
We recommend starting with deployment of [Foundational Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboard-foundational.html). Then deploy [Data Collection](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/data-collection.html) and [Advanced Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#advanced-dashboards). Check for [Additional](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#additional
|
|
29
|
+
We recommend starting with deployment of [Foundational Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboard-foundational.html). Then deploy [Data Collection](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/data-collection.html) and [Advanced Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#advanced-dashboards). Check for [Additional](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#additional) Dashboards.
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
[](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/deployment-in-global-regions.html)
|
|
@@ -156,4 +156,4 @@ See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more inform
|
|
|
156
156
|
This library is licensed under the MIT-0 License. See the [LICENSE](LICENSE) file.
|
|
157
157
|
|
|
158
158
|
## Notices
|
|
159
|
-
Dashboards and their content: (a) are for informational purposes only, (b) represents current AWS product offerings and practices, which are subject to change without notice, and (c) does not create any commitments or assurances from AWS and its affiliates, suppliers or licensors. AWS content, products or services are provided “as is” without warranties, representations, or conditions of any kind, whether express or implied. The responsibilities and liabilities of AWS to its customers are controlled by AWS agreements, and this document is not part of, nor does it modify, any agreement between AWS and its customers.
|
|
159
|
+
Dashboards and their content: (a) are for informational purposes only, (b) represents current AWS product offerings and practices, which are subject to change without notice, and (c) does not create any commitments or assurances from AWS and its affiliates, suppliers or licensors. AWS content, products or services are provided “as is” without warranties, representations, or conditions of any kind, whether express or implied. The responsibilities and liabilities of AWS to its customers are controlled by AWS agreements, and this document is not part of, nor does it modify, any agreement between AWS and its customers.
|
|
@@ -270,6 +270,8 @@ def export_analysis(qs, athena, glue):
|
|
|
270
270
|
logger.debug(f'{dep_view_name} is not cur')
|
|
271
271
|
if dep_view_name not in all_views_data:
|
|
272
272
|
logger.debug(f'{dep_view_name} skipping as not in the views list')
|
|
273
|
+
if dep_view_name in ['account_map']:
|
|
274
|
+
logger.debug(f'{dep_view_name} is a special. skip.')
|
|
273
275
|
non_cur_dep_views.append(dep_view_name)
|
|
274
276
|
if deps.get('views'):
|
|
275
277
|
deps['views'] = non_cur_dep_views
|
|
@@ -299,7 +299,10 @@ class CUR(AbstractCUR):
|
|
|
299
299
|
)
|
|
300
300
|
if answer == '<CREATE CUR TABLE AND CRAWLER>':
|
|
301
301
|
raise CidCritical('CUR creation was requested') # to be captured in common.py
|
|
302
|
-
|
|
302
|
+
if isinstance(answer, str) and '.' in answer and len(answer.split('.')) == 2:
|
|
303
|
+
database, table = answer.split('.')
|
|
304
|
+
else:
|
|
305
|
+
database, table = answer
|
|
303
306
|
set_parameters({'cur-table-name': table,'cur-database': database, })
|
|
304
307
|
return database, self.athena.get_table_metadata(table, database_name=database)
|
|
305
308
|
|
|
@@ -400,8 +400,8 @@ class ProxyView():
|
|
|
400
400
|
MAP(ARRAY['key1', 'key2'], ARRAY[value1, value2])
|
|
401
401
|
'''
|
|
402
402
|
arrays = re.findall(r'ARRAY\[(.*?)\]', mapping_string) # Extract arrays from the string
|
|
403
|
-
keys = arrays[0].
|
|
404
|
-
values = arrays[1].
|
|
403
|
+
keys = arrays[0].replace("'", '').split(',') # Split arrays into elements
|
|
404
|
+
values = arrays[1].split(',') # FIXME: the values can be more complex then just columns and ma potentially include comma in some rare cases.
|
|
405
405
|
return {key.strip(): value.strip() for key, value in zip(keys, values)}
|
|
406
406
|
|
|
407
407
|
_current_sql = '\n'.join([line[0] for line in self.athena.query(f'SHOW CREATE VIEW {self.name}')])
|
|
@@ -417,9 +417,9 @@ class ProxyView():
|
|
|
417
417
|
logger.warning(f'Cannot find map {field} definition in the view {self.name}. It must be defined as MAP.')
|
|
418
418
|
continue
|
|
419
419
|
current_map = _parse_mapping_string(maps[0])
|
|
420
|
-
logger.debug(f'current definition of {field}
|
|
421
|
-
self.exposed_maps[field].update([key
|
|
422
|
-
logger.debug(f'{self.exposed_maps}')
|
|
420
|
+
logger.debug(f'current definition of {field} = {current_map}')
|
|
421
|
+
self.exposed_maps[field].update([key for key in current_map])
|
|
422
|
+
logger.debug(f'exposed_maps = {self.exposed_maps}')
|
|
423
423
|
|
|
424
424
|
def source_column_equivalents(self, field):
|
|
425
425
|
""" Given a field of cur return an equivalent field in the target cur system. This one does not care if field actually exists
|
|
@@ -505,7 +505,7 @@ class ProxyView():
|
|
|
505
505
|
if field_type.lower().startswith('map'):
|
|
506
506
|
map_field = field.split('[')[0]
|
|
507
507
|
map_mapping = {}
|
|
508
|
-
keys_set = set(self.exposed_maps.get(
|
|
508
|
+
keys_set = set(self.exposed_maps.get(map_field, set()))
|
|
509
509
|
keys_set.update(self.fields_to_expose_in_maps.get(map_field, set()))
|
|
510
510
|
for key in keys_set:
|
|
511
511
|
map_field_key = f'{map_field}_{key}'
|
|
@@ -514,7 +514,7 @@ class ProxyView():
|
|
|
514
514
|
map_field_key = f'"{map_field_key}"'
|
|
515
515
|
map_mapping[key] = map_field_key
|
|
516
516
|
else:
|
|
517
|
-
map_mapping[key] = empty['string'] # all known maps have string
|
|
517
|
+
map_mapping[key] = empty['string'] # all known maps have string values for now
|
|
518
518
|
if not map_mapping:
|
|
519
519
|
return 'cast(NULL AS MAP<VARCHAR, VARCHAR>)'
|
|
520
520
|
map_mapping = dict(sorted(map_mapping.items())) # ordered dict
|
|
@@ -566,8 +566,6 @@ class ProxyView():
|
|
|
566
566
|
lines = {}
|
|
567
567
|
for field in all_target_fields:
|
|
568
568
|
target_field = self.get_fields_from_sql(field)[0]
|
|
569
|
-
if target_field not in self.exposed_fields:
|
|
570
|
-
something_changed = True
|
|
571
569
|
target_field_type = self.cur.get_type_of_column(target_field, self.target_cur_version)
|
|
572
570
|
logger.trace(f'get_sql_expression {field} {target_field_type}')
|
|
573
571
|
mapped_expression = self.get_sql_expression(field, target_field_type) #
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cid-cmd
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.2
|
|
4
4
|
Summary: Cloud Intelligence Dashboards deployment helper tool
|
|
5
5
|
Home-page: https://github.com/aws-samples/aws-cudos-framework-deployment
|
|
6
6
|
Author: AWS CUDOS Team
|
|
@@ -54,7 +54,7 @@ Cloud Intelligence Dashboards Framework provides AWS customers with [more then 2
|
|
|
54
54
|
* Advanced Dashboards - Require CID Data Collection and CUR
|
|
55
55
|
* Additional Dashboards - Require various custom datasources or created for very specific use cases.
|
|
56
56
|
|
|
57
|
-
We recommend starting with deployment of [Foundational Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboard-foundational.html). Then deploy [Data Collection](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/data-collection.html) and [Advanced Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#advanced-dashboards). Check for [Additional](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#additional
|
|
57
|
+
We recommend starting with deployment of [Foundational Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboard-foundational.html). Then deploy [Data Collection](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/data-collection.html) and [Advanced Dashboards](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#advanced-dashboards). Check for [Additional](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/dashboards.html#additional) Dashboards.
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
[](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/deployment-in-global-regions.html)
|
cid_cmd-4.3.1/cid/_version.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/trends/daily_anomaly_detection.json
RENAMED
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/trends/monthly_anomaly_detection.json
RENAMED
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/trends/monthly_bill_by_account.json
RENAMED
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/dashboard_permissions.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/data_set_rls_permissions.json
RENAMED
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/data_source_permissions.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/aws_service_category_map.sql
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/customer_all_unlimited.sql
RENAMED
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/payer_account_name_map.sql
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/trends/daily_anomaly_detection.sql
RENAMED
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/trends/monthly_anomaly_detection.sql
RENAMED
|
File without changes
|
{cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/trends/monthly_bill_by_account.sql
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|