thisisnic commented on a change in pull request #10546:
URL: https://github.com/apache/arrow/pull/10546#discussion_r678171786
##########
File path: r/vignettes/fs.Rmd
##########
@@ -86,27 +98,48 @@ june2019 <-
SubTreeFileSystem$create("s3://ursa-labs-taxi-data/2019/06")
## Authentication
To access private S3 buckets, you need typically need two secret parameters:
-a `access_key`, which is like a user id,
-and `secret_key`, like a token.
+an `access_key`, which is like a user id,
+and a `secret_key`, like a token.
There are a few options for passing these credentials:
-1. Include them in the URI, like
`s3://access_key:secret_key@bucket-name/path/to/file`. Be sure to
[URL-encode](https://en.wikipedia.org/wiki/Percent-encoding) your secrets if
they contain special characters like "/".
+1. Include them in the URI, like
+`s3://access_key:secret_key@bucket-name/path/to/file`. Be sure to
+[URL-encode](https://en.wikipedia.org/wiki/Percent-encoding) your secrets if
+they contain special characters like "/".
-2. Pass them as `access_key` and `secret_key` to `S3FileSystem$create()` or
`s3_bucket()`
+2. Pass them as `access_key` and `secret_key` to `S3FileSystem$create()` or
+`s3_bucket()`
-3. Set them as environment variables named `AWS_ACCESS_KEY_ID` and
`AWS_SECRET_ACCESS_KEY`, respectively.
+3. Set them as environment variables named `AWS_ACCESS_KEY_ID` and
+`AWS_SECRET_ACCESS_KEY`, respectively.
-4. Define them in a `~/.aws/credentials` file, according to the [AWS
documentation](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/credentials.html).
+4. Define them in a `~/.aws/credentials` file, according to the
+[AWS
documentation](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/credentials.html).
You can also use an
[AccessRole](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html)
-for temporary access by passing the `role_arn` identifier to
`S3FileSystem$create()` or `s3_bucket()`.
+for temporary access by passing the `role_arn` identifier to
+`S3FileSystem$create()` or `s3_bucket()`.
## File systems that emulate S3
+### Connecting to a local S3
Review comment:
```suggestion
### Connecting to a local S3 file system
```
--
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]