You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by ol...@apache.org on 2022/02/21 11:04:32 UTC
[incubator-datalab] branch security/DLAB-2882 updated: added versioning
This is an automated email from the ASF dual-hosted git repository.
olehmykolaishyn pushed a commit to branch security/DLAB-2882
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/security/DLAB-2882 by this push:
new 7138666 added versioning
7138666 is described below
commit 7138666384b01e0787e4d95d90aa17102a4c9550
Author: oleh_mykolaishyn <ow...@gmail.com>
AuthorDate: Mon Feb 21 13:04:18 2022 +0200
added versioning
---
infrastructure-provisioning/src/general/lib/aws/actions_lib.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
index 6ea03f7..03ed634 100644
--- a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
@@ -72,6 +72,8 @@ def create_s3_bucket(bucket_name, bucket_tags, region, bucket_name_tag):
bucket = s3.create_bucket(Bucket=bucket_name)
else:
bucket = s3.create_bucket(Bucket=bucket_name, CreateBucketConfiguration={'LocationConstraint': region})
+ bucket_versioning = s3.BucketVersioning(bucket_name)
+ bucket_versioning.enable()
boto3.client('s3', config=botoConfig(signature_version='s3v4')).put_bucket_encryption(
Bucket=bucket_name, ServerSideEncryptionConfiguration={
'Rules': [
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org