This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch epm-v2.5.2-tpcp
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/epm-v2.5.2-tpcp by this push:
     new b0e5c0135 commented put_public_access_block aws s3 part
b0e5c0135 is described below

commit b0e5c01351be6a991d7f83ec2a0bf8e225d7c15d
Author: leonidfrolov <[email protected]>
AuthorDate: Tue May 3 14:04:09 2022 +0300

    commented put_public_access_block aws s3 part
---
 .../src/general/lib/aws/actions_lib.py                   | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py 
b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
index 33ef6c613..fb0a175d3 100644
--- a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
@@ -89,14 +89,14 @@ def create_s3_bucket(bucket_name, bucket_tags, region, 
bucket_name_tag, bucket_v
             })
 
         # Config for Public Access Block in s3
-        boto3.client('s3', 
config=botoConfig(signature_version='s3v4')).put_public_access_block(
-            Bucket=bucket_name,
-            PublicAccessBlockConfiguration={
-                'BlockPublicAcls': True,
-                'IgnorePublicAcls': True,
-                'BlockPublicPolicy': True,
-                'RestrictPublicBuckets': True
-            })
+        # boto3.client('s3', 
config=botoConfig(signature_version='s3v4')).put_public_access_block(
+        #     Bucket=bucket_name,
+        #     PublicAccessBlockConfiguration={
+        #         'BlockPublicAcls': True,
+        #         'IgnorePublicAcls': True,
+        #         'BlockPublicPolicy': True,
+        #         'RestrictPublicBuckets': True
+        #     })
 
         # Configuring bucket policy to ensure encryption in transit
         bucket_policy = {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to