qontract-reconcile 0.10.2.dev67__py3-none-any.whl → 0.10.2.dev68__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.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev67
3
+ Version: 0.10.2.dev68
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
6
6
  Project-URL: repository, https://github.com/app-sre/qontract-reconcile
@@ -637,7 +637,7 @@ reconcile/utils/state.py,sha256=az4tBmZ0EdbFcAGiBVUxs3cr2-BVWsuDQiNTvjjQq8s,1637
637
637
  reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
638
638
  reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
639
639
  reconcile/utils/terraform_client.py,sha256=H8frsS370y8xfivKLNBD1dwlBLHvfuR6JSN_syBL5Qc,36033
640
- reconcile/utils/terrascript_aws_client.py,sha256=hPfWduAsMpVUcYgw1cx7tiAyVmsJ1BdTCqPzyYPTThE,286260
640
+ reconcile/utils/terrascript_aws_client.py,sha256=n22HESuN24UVT9g0cEqLWqy1n6_RnCTGSQqt-Sg39Qw,286203
641
641
  reconcile/utils/three_way_diff_strategy.py,sha256=oQcHXd9LVhirJfoaOBoHUYuZVGfyL2voKr6KVI34zZE,4833
642
642
  reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
643
643
  reconcile/utils/vault.py,sha256=aSA8l9cJlPUHpChFGl27nSY-Mpq9FMjBo7Dcgb1BVfM,15036
@@ -777,7 +777,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
777
777
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
778
778
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
779
779
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
780
- qontract_reconcile-0.10.2.dev67.dist-info/METADATA,sha256=Nyd438BM7Sf5HGgYKflFl_4LLGDU4l0YQ-4r5AYn5DM,24665
781
- qontract_reconcile-0.10.2.dev67.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
782
- qontract_reconcile-0.10.2.dev67.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
783
- qontract_reconcile-0.10.2.dev67.dist-info/RECORD,,
780
+ qontract_reconcile-0.10.2.dev68.dist-info/METADATA,sha256=F5HAp7c__2fD2gE1spyhMIzgE72B9CKhV0A-7MxOQNY,24665
781
+ qontract_reconcile-0.10.2.dev68.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
782
+ qontract_reconcile-0.10.2.dev68.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
783
+ qontract_reconcile-0.10.2.dev68.dist-info/RECORD,,
@@ -5179,13 +5179,13 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
5179
5179
  return {condition_type_key: {"values": condition[condition_type_key]}}
5180
5180
 
5181
5181
  @staticmethod
5182
- def _get_principal_for_s3_bucket_policy(
5183
- region: str, elb_account_id: str | None
5184
- ) -> Mapping[str, str]:
5182
+ def _get_principal_for_s3_bucket_policy(region: str) -> Mapping[str, str]:
5185
5183
  if region in AWS_ELB_ACCOUNT_IDS:
5186
- return {"AWS": f"arn:aws:iam::{elb_account_id}:root"}
5184
+ return {"AWS": f"arn:aws:iam::{AWS_ELB_ACCOUNT_IDS[region]}:root"}
5187
5185
  if region in AWS_US_GOV_ELB_ACCOUNT_IDS:
5188
- return {"AWS": f"arn:aws-us-gov:iam::{elb_account_id}:root"}
5186
+ return {
5187
+ "AWS": f"arn:aws-us-gov:iam::{AWS_US_GOV_ELB_ACCOUNT_IDS[region]}:root"
5188
+ }
5189
5189
  return {"Service": "logdelivery.elasticloadbalancing.amazonaws.com"}
5190
5190
 
5191
5191
  def populate_tf_resource_alb(self, spec, ocm_map=None):
@@ -5305,8 +5305,7 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
5305
5305
  region = str(
5306
5306
  common_values.get("region") or self.default_regions.get(account)
5307
5307
  )
5308
- elb_account_id = self._get_elb_account_id(region)
5309
- principal = self._get_principal_for_s3_bucket_policy(region, elb_account_id)
5308
+ principal = self._get_principal_for_s3_bucket_policy(region)
5310
5309
 
5311
5310
  policy = {
5312
5311
  "Version": "2012-10-17",