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
-------------------------------------------------
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
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Segmentation using Watershed Algorithm in Matlab | Practice ProblemInteractive Image Segmentation In-depth IntuitionRead CSV Data from External Stage & write in Permanent Snowflake Table using Snowflake SnowparkFrequency range of interest in Frequency Response | DSP | MATLABMinimize an objective function whose values are given by executing a file | MATLABKafka Consumer Groups CLI Demo | Kafka-PythonPractice Questions On Gradient Descent | MATLABVPC with Public and Private Subnets in-depth intuition with Hands OnRandom Forest Classifier and Regressor (In-depth Intuition)Negative of an Image | MATLABHow are k-means clustering algorithms sensitive to outliers?Create , Update , Delete Athena Parameterized Queries using boto3 & prevent SQL Injection AttackIn depth intuition on _$folder$ keys in S3 with Hadoop (EMR)Apache Kafka Rebalance Listener & Implementing a database sink for KafkaProcessing Complex Type & Producing Messages to Topic using FaustAutomate the partition creation process in AWS Athena in-depth explanationRefreshing External Snowflake Tables Automatically for Amazon S3Hive Schema On Read in-depth intuition with detailed Lab experimentMastering Data Validation🔍 : Building a Metadata-Driven Framework for Error-Free Data🎯Time-series Segmentation based on derivative