Загрузка страницы

AWS S3 Bucket policies in-depth intuition

AWS Scenario Based Question:
-------------------------------------------------
Kamlesh is a new hire at your company, Let The Data Explain(LTDE) , and your manager has requested you provision S3 access to Kamlesh so that he can begin migrating data to the cloud.

However, before you can give Kamlesh full access to data stored in S3, we want to ensure that Kamlesh won't have access to the confidential S3 bucket.

What will you do in this case?

In this video I have explained about this scenario in detail.

Code:
-----------
!pip install boto3
import boto3
import json

bucket_policy={}
bucket_policy = json.dumps(bucket_policy)
access_key=""
secret_key=""
s3 = boto3.client('s3',aws_access_key_id=access_key,
aws_secret_access_key=secret_key,
region_name='{}')
s3.put_bucket_policy(Bucket='{}', Policy=bucket_policy)
Documentation Link:
-----------------------------------
https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-bucket-policies.html
Check this playlist for more AWS Projects in Big Data domain:
https://youtube.com/playlist?list=PLjfRmoYoxpNopPjdACgS5XTfdjyBcuGku

Видео AWS S3 Bucket policies in-depth intuition канала Knowledge Amplifier
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
6 апреля 2022 г. 11:33:51
00:25:07
Яндекс.Метрика