qontract-reconcile 0.10.1rc978__py3-none-any.whl → 0.10.1rc979__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qontract-reconcile
3
- Version: 0.10.1rc978
3
+ Version: 0.10.1rc979
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Home-page: https://github.com/app-sre/qontract-reconcile
6
6
  Author: Red Hat App-SRE Team
@@ -710,7 +710,7 @@ reconcile/utils/state.py,sha256=a_EO5u7__Pqd0_E3MqzUttJ-0xRtuxcNx5oQi5WIahI,1639
710
710
  reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
711
711
  reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
712
712
  reconcile/utils/terraform_client.py,sha256=tCDVrfmFCB6lGfGhJt13VRkHxGy7Psw88KIze0r-JLo,31787
713
- reconcile/utils/terrascript_aws_client.py,sha256=qobUuAhZQvnsBWdt6hbsllSVWZWOLlIs5HZ2btirD0s,276571
713
+ reconcile/utils/terrascript_aws_client.py,sha256=6eKwBkyesrARf5j1cAaVV9aCECkPDWTxGX1bIZNofbg,277032
714
714
  reconcile/utils/three_way_diff_strategy.py,sha256=oQcHXd9LVhirJfoaOBoHUYuZVGfyL2voKr6KVI34zZE,4833
715
715
  reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
716
716
  reconcile/utils/vault.py,sha256=9GSNHku8tw5KM2LKpZ1myWYDLtLGUJgpSnD0DxbzeO0,14956
@@ -851,8 +851,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
851
851
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
852
852
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
853
853
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
854
- qontract_reconcile-0.10.1rc978.dist-info/METADATA,sha256=uOUbg3xbF6czgixzBH7noyhEscCDV0Y6SLkyviIjnEE,2262
855
- qontract_reconcile-0.10.1rc978.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
856
- qontract_reconcile-0.10.1rc978.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
857
- qontract_reconcile-0.10.1rc978.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
858
- qontract_reconcile-0.10.1rc978.dist-info/RECORD,,
854
+ qontract_reconcile-0.10.1rc979.dist-info/METADATA,sha256=mcW-OnE42vVm2Fc6zXLgSbRES2I6J9VoI-cTZ1A-3WY,2262
855
+ qontract_reconcile-0.10.1rc979.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
856
+ qontract_reconcile-0.10.1rc979.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
857
+ qontract_reconcile-0.10.1rc979.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
858
+ qontract_reconcile-0.10.1rc979.dist-info/RECORD,,
@@ -2650,6 +2650,15 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
2650
2650
  )
2651
2651
  tf_resources.append(tf_aws_iam_policy_attachment)
2652
2652
 
2653
+ for policy in common_values.get("policies") or []:
2654
+ tf_iam_role_policy_attachment = aws_iam_role_policy_attachment(
2655
+ identifier + "-" + policy,
2656
+ role=role_tf_resource.name,
2657
+ policy_arn=f"arn:{self._get_partition(account)}:iam::aws:policy/{policy}",
2658
+ depends_on=self.get_dependencies([role_tf_resource]),
2659
+ )
2660
+ tf_resources.append(tf_iam_role_policy_attachment)
2661
+
2653
2662
  # output role arn
2654
2663
  output_name = output_prefix + "__role_arn"
2655
2664
  output_value = "${" + role_tf_resource.arn + "}"