Movatterモバイル変換


[0]ホーム

URL:


Configuring IAM policies for using access points for directory buckets - Amazon Simple Storage Service
DocumentationAmazon Simple Storage Service (S3)User Guide
Access points for directory buckets policy examplesCondition keysDelegating access control to access pointsGranting permissions for cross-account access points

Configuring IAM policies for using access points for directory buckets

Access points support AWS Identity and Access Management (IAM) resource policies that allow you to control the use of the access point by resource, user, or other conditions. For an application or user to access objects through an access point, both the access point and the underlying bucket policy must permit the request.

When using IAM resource policies, make sure to resolve security warnings, errors, general warnings, and suggestions from AWS Identity and Access Management Access Analyzer before you save your policy. IAM Access Analyzer runs policy checks to validate your policy against IAMpolicy grammar andbest practices. These checks generate findings and provide recommendations to help you author policies that are functional and conform to security best practices.

To learn more about validating policies by using IAM Access Analyzer, seeIAM Access Analyzer policy validation in theIAM User Guide. To view a list of the warnings, errors, and suggestions that are returned by IAM Access Analyzer, seeIAM Access Analyzer policy check reference.

Access points for directory buckets policy examples

The following access point policies demonstrate how to control requests to a directory bucket. Access point policies require bucket ARNs or access point ARNs. Access point aliases are not supported in policies. Following is an example of an access point ARN:

arn:aws:s3express:region:account-id:accesspoint/myaccesspoint--zoneID--xa-s3

You can view the access point ARN in the details of an access point. For more information, seeView details for your access points for directory buckets.

Condition keys

Access points for directory buckets have condition keys that you can use in IAM policies to control access to your resources. The following condition keys represent only part of an IAM policy. For full policy examples, seeAccess points for directory buckets policy examples,Delegating access control to access points, andGranting permissions for cross-account access points.

s3express:DataAccessPointArn

This example shows how to filter access by the Amazon resource name (ARN) of an access point and matches all access points for AWS account111122223333 in Regionregion:

"Condition" :{ "StringLike":{ "s3express:DataAccessPointArn": "arn:aws:s3express:region:111122223333:accesspoint/*" }}
s3express:DataAccessPointAccount

This example shows a string operator that you can use to match on the account ID of the owner of an access point. The following example matches all access points that are owned by the AWS account111122223333.

"Condition" :{ "StringEquals":{ "s3express:DataAccessPointAccount": "111122223333" }}
s3express:AccessPointNetworkOrigin

This example shows a string operator that you can use to match on the network origin, eitherInternet orVPC. The following example matches only access points with a VPC origin.

"Condition" :{ "StringEquals":{ "s3express:AccessPointNetworkOrigin": "VPC" }}
s3express:Permissions

You can uses3express:Permissions to restrict access to specific API operations in access point scope. The following API operations are supported:

For more information about using condition keys with Amazon S3, see Actions, resources, and condition keys for Amazon S3 in theService Authorization Reference.

For more information about the required permissions to S3 API operations by S3 resource types, seeRequired permissions for Amazon S3 API operations.

Delegating access control to access points

You can delegate access control from the bucket policy to the access point policy. The following example bucket policy allows full access to all access points that are owned by the bucket owner's account. After applying the policy, all access to this bucket is controlled by access point policies. We recommend configuring your buckets this way for all use cases that don't require direct access to the bucket.

Granting permissions for cross-account access points

To create an access point to a bucket that's owned by another account, you must first create the access point by specifying the bucket name and account owner ID. Then, the bucket owner must update the bucket policy to authorize requests from the access point. Creating an access point is similar to creating a DNS CNAME in that the access point doesn't provide access to the bucket contents. All bucket access is controlled by the bucket policy. The following example bucket policy allowsGET andLIST requests on the bucket from an access point that's owned by a trusted AWS account.

ReplaceBucket ARN with the ARN of the bucket.

Access points object operations
Monitoring and logging

[8]
ページ先頭

©2009-2025 Movatter.jp