qontract-reconcile 0.10.1rc676__py3-none-any.whl → 0.10.1rc677__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.1rc676
3
+ Version: 0.10.1rc677
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
@@ -616,7 +616,7 @@ reconcile/utils/state.py,sha256=zjsprjbOb0WddzmAvh8ACqAt0fcayrX2YPfz7qceRWw,1609
616
616
  reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
617
617
  reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
618
618
  reconcile/utils/terraform_client.py,sha256=7L55Rvxfzj3KtJH8AD8D8YRfBnFpHiTFqSa5e2_9jtk,32092
619
- reconcile/utils/terrascript_aws_client.py,sha256=5ilYjop1ernub9--1mCxtTCafYZYyFYmoM3Tv-HWFiY,272399
619
+ reconcile/utils/terrascript_aws_client.py,sha256=0kYizE48gVlcXxGdtKcdrbw5Xkb2uQ0ao1stov4lyhU,272099
620
620
  reconcile/utils/three_way_diff_strategy.py,sha256=nyqeQsLCoPI6e16k2CF3b9KNgQLU-rPf5RtfdUfVMwE,4468
621
621
  reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
622
622
  reconcile/utils/unleash.py,sha256=1D56CsZfE3ShDtN3IErE1T2eeIwNmxhK-yYbCotJ99E,3601
@@ -723,8 +723,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
723
723
  tools/test/test_qontract_cli.py,sha256=OvalpVRfY4pNmpMaWHHYqBjV68b1eGQjX8SCyTAXb1w,3501
724
724
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
725
725
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
726
- qontract_reconcile-0.10.1rc676.dist-info/METADATA,sha256=pCiOt-KTtKloejmU-Jp0-p0POnG3Ej1N3NFQ0Ox_WnA,2382
727
- qontract_reconcile-0.10.1rc676.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
728
- qontract_reconcile-0.10.1rc676.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
729
- qontract_reconcile-0.10.1rc676.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
730
- qontract_reconcile-0.10.1rc676.dist-info/RECORD,,
726
+ qontract_reconcile-0.10.1rc677.dist-info/METADATA,sha256=jeb66UTo9ySLlZQEJ9PYl7pNa5qzudUnrbKuXHWuWLI,2382
727
+ qontract_reconcile-0.10.1rc677.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
728
+ qontract_reconcile-0.10.1rc677.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
729
+ qontract_reconcile-0.10.1rc677.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
730
+ qontract_reconcile-0.10.1rc677.dist-info/RECORD,,
@@ -843,13 +843,8 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
843
843
  for user_policy in user_policies:
844
844
  policy_name = user_policy["name"]
845
845
  account_name = user_policy["account"]["name"]
846
- account_uid = user_policy["account"]["uid"]
847
846
  for user in users:
848
- # replace known keys with values
849
847
  user_name = self._get_aws_username(user)
850
- policy = user_policy["policy"]
851
- policy = policy.replace("${aws:username}", user_name)
852
- policy = policy.replace("${aws:accountid}", account_uid)
853
848
 
854
849
  # Ref: terraform aws_iam_policy
855
850
  tf_iam_user = self.get_tf_iam_user(user_name)
@@ -857,7 +852,7 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
857
852
  tf_aws_iam_policy = aws_iam_policy(
858
853
  identifier,
859
854
  name=identifier,
860
- policy=policy,
855
+ policy=user_policy["policy"],
861
856
  )
862
857
  self.add_resource(account_name, tf_aws_iam_policy)
863
858
  # Ref: terraform aws_iam_user_policy_attachment