Accessing buckets in r#582
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
| @@ -0,0 +1,544 @@ | |||
| { | |||
There was a problem hiding this comment.
we should actually check, injecting the tokens into vsi calls might also work.
Also consider in the future using https://cran.r-project.org/web/packages/ConfigParser/index.html
Reply via ReviewNB
There was a problem hiding this comment.
Added this as an optional second path. The notebook now includes a GDAL/VSI environment injection approach, where the temporary access key, secret key, and session token are set for the active R session before opening /vsis3/ paths. I kept the AWS profile method as the main path and marked the VSI token injection method as something to test/confirm in the MAAP Hub environment.
| @@ -0,0 +1,544 @@ | |||
| { | |||
There was a problem hiding this comment.
There was a problem hiding this comment.
Updated this section so the existing ~/.aws/credentials file is preserved. The notebook now updates only the selected profile block with refreshed temporary credentials, instead of overwriting the whole credentials file.
| @@ -0,0 +1,544 @@ | |||
| { | |||
There was a problem hiding this comment.
mention those packages terra lasR , we should confirm if this works with stars and sf
Reply via ReviewNB
There was a problem hiding this comment.
Updated this to explicitly mention terra and lasR. I also added a note that this workflow should be tested/confirmed with stars and sf, since their behavior depends on how they call GDAL for /vsis3/ access.
|
Overall looks pretty good, we should wait on #580 before merging this. I'm also going to tag @samuelgrubinger to review this as the key R user that prompted the need for this documentation. |
This notebook is the R version of the Python workflow that uses `maap.aws.workspace_bucket_credentials()` to retrieve temporary AWS credentials for MAAP workspace and organization S3 buckets. It updates the access level description and adds information about two R access patterns for using temporary credentials.
No description provided.