-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Research potential for an access points feature #58
Comments
It looks like each access point gets an alias which can be used in place of a bucket name by other tools: https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-alias.html Examples here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-usage-examples.html |
To create an access point: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3control.html#S3Control.Client.list_access_points access_point_name = "my-access-point"
bucket_name = "my-existing-bucket"
client = boto3.client("s3control") # Not "s3"
# The account ID is a required field
sts = boto3.client("sts")
identity = sts.get_caller_identity()
account_id = identity["Account"]
response = client.create_access_point(
AccountId=account_id,
Name=access_point_name,
Bucket=bucket_name,
# VpcConfiguration={ # Use this to limit access to a specific VPC
# "VpcId": vpc_name
# },
# PublicAccessBlockConfiguration={
# "BlockPublicAcls": True|False,
# "IgnorePublicAcls": True|False,
# "BlockPublicPolicy": True|False,
# "RestrictPublicBuckets": True|False
# }
)
# response now has "AccessPointArn" and "Alias" keys Documentation here: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3control.html#S3Control.Client.create_access_point - including details of the Once created, it looks like you call
|
I just noticed that according to the documentation |
Suggestion from Reddit.
https://aws.amazon.com/s3/features/access-points/
Could provide CLI commands for creating an access point that enforces a specific policy.
From https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html :
This sounds like it could be the most interesting feature:
Useful note:
The text was updated successfully, but these errors were encountered: