qontract-reconcile 0.10.1rc561__py3-none-any.whl → 0.10.1rc562__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.1rc561
3
+ Version: 0.10.1rc562
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
@@ -597,7 +597,7 @@ reconcile/utils/state.py,sha256=SAa6QLHu9lr0yqLCBy2AypNx1IPCJWlrRBrvlzAKsOU,1450
597
597
  reconcile/utils/structs.py,sha256=LcbLEg8WxfRqM6nW7NhcWN0YeqF7SQzxOgntmLs1SgY,352
598
598
  reconcile/utils/template.py,sha256=wTvRU4AnAV_o042tD4Mwls2dwWMuk7MKnde3MaCjaYg,331
599
599
  reconcile/utils/terraform_client.py,sha256=_jBriLBwU005bDxWlq7CRByOkVCfiH47oBzB0ArNAY8,31901
600
- reconcile/utils/terrascript_aws_client.py,sha256=rE2eSQS2vBfkhR891vsPT-jL4MQJMFSAo1zhxKhrrLU,268043
600
+ reconcile/utils/terrascript_aws_client.py,sha256=iYgRpt5UB9gejVMMCny-p1tChesh6HovMLrX65FbyjI,268803
601
601
  reconcile/utils/three_way_diff_strategy.py,sha256=nyqeQsLCoPI6e16k2CF3b9KNgQLU-rPf5RtfdUfVMwE,4468
602
602
  reconcile/utils/throughput.py,sha256=iP4UWAe2LVhDo69mPPmgo9nQ7RxHD6_GS8MZe-aSiuM,344
603
603
  reconcile/utils/unleash.py,sha256=1D56CsZfE3ShDtN3IErE1T2eeIwNmxhK-yYbCotJ99E,3601
@@ -684,8 +684,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
684
684
  tools/test/test_qontract_cli.py,sha256=se-YG_YVCWRFrnCPvBVHDBT_59CkbIoEni-4SJa8_MU,2755
685
685
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
686
686
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
687
- qontract_reconcile-0.10.1rc561.dist-info/METADATA,sha256=Hbe0XOPl9VtZ8iVRIJ7PSpQODglkGb1_hkGFYrmJCYo,2349
688
- qontract_reconcile-0.10.1rc561.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
689
- qontract_reconcile-0.10.1rc561.dist-info/entry_points.txt,sha256=rTjAv28I_CHLM8ID3OPqMI_suoQ9s7tFbim4aYjn9kk,376
690
- qontract_reconcile-0.10.1rc561.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
691
- qontract_reconcile-0.10.1rc561.dist-info/RECORD,,
687
+ qontract_reconcile-0.10.1rc562.dist-info/METADATA,sha256=VrB_xQ8Nba1GTb6EMQSHBQaNYm9G9xzbvEfMhrQlx_M,2349
688
+ qontract_reconcile-0.10.1rc562.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
689
+ qontract_reconcile-0.10.1rc562.dist-info/entry_points.txt,sha256=rTjAv28I_CHLM8ID3OPqMI_suoQ9s7tFbim4aYjn9kk,376
690
+ qontract_reconcile-0.10.1rc562.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
691
+ qontract_reconcile-0.10.1rc562.dist-info/RECORD,,
@@ -289,6 +289,10 @@ class aws_s3_bucket_acl(Resource):
289
289
  pass
290
290
 
291
291
 
292
+ class aws_s3_bucket_logging(Resource):
293
+ pass
294
+
295
+
292
296
  class aws_cloudfront_log_delivery_canonical_user_id(Data):
293
297
  pass
294
298
 
@@ -1926,6 +1930,21 @@ class TerrascriptClient: # pylint: disable=too-many-public-methods
1926
1930
  if cors_rules:
1927
1931
  # common_values['cors_rules'] is a list of cors_rules
1928
1932
  values["cors_rule"] = cors_rules
1933
+ # S3 Bucket Logging
1934
+ s3_bucket_logging = common_values.get("s3_bucket_logging")
1935
+ if s3_bucket_logging:
1936
+ target_bucket_name = s3_bucket_logging.get("target_bucket_name")
1937
+ logging_identifier = f"{identifier}-logging"
1938
+
1939
+ logging_values = {
1940
+ "bucket": "${aws_s3_bucket." + identifier + ".id}",
1941
+ "target_bucket": "${aws_s3_bucket." + target_bucket_name + ".id}",
1942
+ "target_prefix": s3_bucket_logging.get("target_prefix", ""),
1943
+ }
1944
+ logging_tf_resource = aws_s3_bucket_logging(
1945
+ logging_identifier, **logging_values
1946
+ )
1947
+ tf_resources.append(logging_tf_resource)
1929
1948
  deps = []
1930
1949
  replication_configs = common_values.get("replication_configurations")
1931
1950
  if replication_configs: