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.
Files changed (126) hide show
  1. {cid_cmd-4.3.1/cid_cmd.egg-info → cid_cmd-4.3.2}/PKG-INFO +2 -2
  2. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/README.md +2 -2
  3. cid_cmd-4.3.2/cid/_version.py +2 -0
  4. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/export.py +2 -0
  5. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/cur.py +4 -1
  6. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/cur_proxy.py +7 -9
  7. {cid_cmd-4.3.1 → cid_cmd-4.3.2/cid_cmd.egg-info}/PKG-INFO +2 -2
  8. cid_cmd-4.3.1/cid/_version.py +0 -2
  9. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/LICENSE +0 -0
  10. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/MANIFEST.in +0 -0
  11. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/__init__.py +0 -0
  12. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/base.py +0 -0
  13. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/__init__.py +0 -0
  14. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/__init__.py +0 -0
  15. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cid/compute.json +0 -0
  16. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cid/ec2_running_cost.json +0 -0
  17. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cid/s3_view.json +0 -0
  18. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cid/summary_view.json +0 -0
  19. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/co/dataset.json +0 -0
  20. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cudos/hourly_view.json +0 -0
  21. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/cudos/resource_view.json +0 -0
  22. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/kpi/kpi_ebs_snap.json +0 -0
  23. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/kpi/kpi_ebs_storage_all.json +0 -0
  24. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/kpi/kpi_instance_all.json +0 -0
  25. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/kpi/kpi_s3_storage_all.json +0 -0
  26. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/kpi/kpi_tracker.json +0 -0
  27. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/shared/customer_all.json +0 -0
  28. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/tao/dataset.json +0 -0
  29. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/trends/daily_anomaly_detection.json +0 -0
  30. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/trends/monthly_anomaly_detection.json +0 -0
  31. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/datasets/trends/monthly_bill_by_account.json +0 -0
  32. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/dashboard_permissions.json +0 -0
  33. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/dashboard_permissions_namespace.json +0 -0
  34. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/data_set_permissions.json +0 -0
  35. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/data_set_rls_permissions.json +0 -0
  36. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/data_source_permissions.json +0 -0
  37. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/permissions/folder_permissions.json +0 -0
  38. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cid/compute_savings_plan_eligible_spend.sql +0 -0
  39. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cid/ec2_running_cost.sql +0 -0
  40. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cid/ri_sp_mapping.sql +0 -0
  41. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cid/s3.sql +0 -0
  42. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cid/summary_view.sql +0 -0
  43. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/all_options.sql +0 -0
  44. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/auto_scale.json +0 -0
  45. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/auto_scale_options.sql +0 -0
  46. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ebs_volume.json +0 -0
  47. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ebs_volume_options.sql +0 -0
  48. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ec2_instance.json +0 -0
  49. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ec2_instance_options.sql +0 -0
  50. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ecs_service.json +0 -0
  51. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/ecs_service_options.sql +0 -0
  52. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/idle.json +0 -0
  53. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/idle_options.sql +0 -0
  54. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/lambda.json +0 -0
  55. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/lambda_options.sql +0 -0
  56. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/license.json +0 -0
  57. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/license_options.sql +0 -0
  58. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/rds_database.json +0 -0
  59. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/rds_instance_options.sql +0 -0
  60. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/co/rds_storage_options.sql +0 -0
  61. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cudos/hourly_view.sql +0 -0
  62. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/cudos/resource_view.sql +0 -0
  63. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/first_kpi_instance_mapping_view.sql +0 -0
  64. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/kpi_ebs_snap_view.sql +0 -0
  65. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/kpi_ebs_storage_view.sql +0 -0
  66. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/kpi_instance_all_view.sql +0 -0
  67. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/kpi_s3_storage_view.sql +0 -0
  68. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/kpi/last_kpi_tracker_view.sql +0 -0
  69. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/account_map.sql +0 -0
  70. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/account_map_cur2.sql +0 -0
  71. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/account_map_dummy.sql +0 -0
  72. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/aws_accounts.sql +0 -0
  73. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/aws_regions.sql +0 -0
  74. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/aws_service_category_map.sql +0 -0
  75. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/business_units_map.sql +0 -0
  76. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/cur.yaml +0 -0
  77. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/customer_all_unlimited.sql +0 -0
  78. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/payer_account_name_map.sql +0 -0
  79. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/shared/ta_descriptions.sql +0 -0
  80. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/tao/glue_table.json +0 -0
  81. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/tao/ta_org_view.sql +0 -0
  82. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/trends/daily_anomaly_detection.sql +0 -0
  83. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/trends/monthly_anomaly_detection.sql +0 -0
  84. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/queries/trends/monthly_bill_by_account.sql +0 -0
  85. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/builtin/core/data/resources.yaml +0 -0
  86. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/cli.py +0 -0
  87. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/commands/__init__.py +0 -0
  88. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/commands/command_base.py +0 -0
  89. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/commands/init_qs.py +0 -0
  90. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/common.py +0 -0
  91. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/exceptions.py +0 -0
  92. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/__init__.py +0 -0
  93. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/account_map.py +0 -0
  94. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/athena.py +0 -0
  95. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/cloudformation.py +0 -0
  96. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/csv2view.py +0 -0
  97. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/diff.py +0 -0
  98. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/glue.py +0 -0
  99. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/iam.py +0 -0
  100. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/organizations.py +0 -0
  101. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/parameter_store.py +0 -0
  102. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/__init__.py +0 -0
  103. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/dashboard.py +0 -0
  104. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/dashboard_patching.py +0 -0
  105. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/dataset.py +0 -0
  106. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/datasource.py +0 -0
  107. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/definition.py +0 -0
  108. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/resource.py +0 -0
  109. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/template.py +0 -0
  110. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/quicksight/version.py +0 -0
  111. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/randtime.py +0 -0
  112. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/s3.py +0 -0
  113. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/helpers/timezone.py +0 -0
  114. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/logger.py +0 -0
  115. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/plugin.py +0 -0
  116. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/test/python/test_csv2view.py +0 -0
  117. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/test/python/test_isolated_parameters.py +0 -0
  118. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/test/python/test_merge.py +0 -0
  119. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid/utils.py +0 -0
  120. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid_cmd.egg-info/SOURCES.txt +0 -0
  121. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid_cmd.egg-info/dependency_links.txt +0 -0
  122. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid_cmd.egg-info/entry_points.txt +0 -0
  123. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid_cmd.egg-info/requires.txt +0 -0
  124. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/cid_cmd.egg-info/top_level.txt +0 -0
  125. {cid_cmd-4.3.1 → cid_cmd-4.3.2}/pyproject.toml +0 -0
  126. {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.1
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-dashboards) Dashboards.
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
  [![Documentation >](assets/images/documentation.svg)](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-dashboards) Dashboards.
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
  [![Documentation >](assets/images/documentation.svg)](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.
@@ -0,0 +1,2 @@
1
+ __version__ = '4.3.2'
2
+
@@ -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
- database, table = answer
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].strip('\'').split(',') # Split arrays into elements
404
- values = arrays[1].strip('\'').split(',')
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} of {current_map}')
421
- self.exposed_maps[field].update([key[0] for key in current_map])
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(field, set()))
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 vaules for now
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.1
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-dashboards) Dashboards.
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
  [![Documentation >](assets/images/documentation.svg)](https://docs.aws.amazon.com/guidance/latest/cloud-intelligence-dashboards/deployment-in-global-regions.html)
@@ -1,2 +0,0 @@
1
- __version__ = '4.3.1'
2
-
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