jackye1995 commented on code in PR #4391:
URL: https://github.com/apache/iceberg/pull/4391#discussion_r858229631


##########
docs/integrations/aws.md:
##########
@@ -435,6 +435,26 @@ For the above example, the objects in S3 will be saved 
with tags: `my_key1=my_va
 
 For more details on tag restrictions, please refer [User-Defined Tag 
Restrictions](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html).
 
+### S3 Access Points
+
+[Access 
Points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html)
 can be used for operating
+S3 objects from the specified bucket, against which access-point was mapped. 
This is useful for multi-region access, cross-region access,
+disaster recovery, etc.
+
+For example, to use S3 access-point with Spark 3.0, you can start the Spark 
SQL shell with:
+```
+spark-sql --conf 
spark.sql.catalog.my_catalog=org.apache.iceberg.spark.SparkCatalog \
+    --conf 
spark.sql.catalog.my_catalog.warehouse=s3://my-bucket2/my/key/prefix \
+    --conf 
spark.sql.catalog.my_catalog.catalog-impl=org.apache.iceberg.aws.glue.GlueCatalog
 \
+    --conf 
spark.sql.catalog.my_catalog.io-impl=org.apache.iceberg.aws.s3.S3FileIO \
+    --conf 
spark.sql.catalog.test.s3.access-points.my-bucket1=arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap
 \
+    --conf 
spark.sql.catalog.test.s3.access-points.my-bucket2=arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap
+```
+For the above example, the objects in S3 on `my-bucket1` and `my-bucket2` 
buckets will use `arn:aws:s3::123456789012:accesspoint:mfzwi23gnjvgw.mrap`
+access-point for all S3 operations.
+
+For more details on using access-points, please refer [Using access points 
with compatible Amazon S3 
operations](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-usage-examples.html).

Review Comment:
   what about the `use-arn-region-enabled` config? It's missing in the 
documentation. We can talk a bit about single vs multi-region endpoint and 
bring up this config.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to