eric-maynard opened a new pull request, #455:
URL: https://github.com/apache/polaris/pull/455

   # Description
   
   This adds support for a new property, `region` for AWS storage 
configurations.
   
   Fixes #342
   
   ## Type of change
   
   Please delete options that are not relevant.
   
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Documentation update
   - [x] New feature (non-breaking change which adds functionality)
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to not work as expected)
   - [ ] This change requires a documentation update
   
   # How Has This Been Tested?
   
   I'm able to create catalogs and add the `region` property to the 
StorageConfigInfo:
   ```
   LD4RTJ0HY9:polaris emaynard$ curl -X POST 
http://localhost:8181/api/management/v1/catalogs \
   > -H "Authorization: Bearer principal:root;realm:default-realm" \
   > -H "Content-Type: application/json" \
   > -d '{
   >   "catalog": {
   >     "type": "INTERNAL",
   >     "name": "example_catalog",
   >     "properties": {
   >       "default-base-location": "s3://your-bucket/catalog-location/"
   >     },
   >     "storageConfigInfo": {
   >       "storageType": "S3",
   >       "roleArn": "arn:aws:iam::012345678901:role/jdoe",
   >       "region": "us-east-2"
   >     }
   >   }
   > }'
   LD4RTJ0HY9:polaris emaynard$ curl -X GET 
http://localhost:8181/api/management/v1/catalogs/example_catalog \
   > -H "Authorization: Bearer principal:root;realm:default-realm" \
   > -H "Content-Type: application/json" | jq
   {
     "type": "INTERNAL",
     "name": "example_catalog",
     "properties": {
       "default-base-location": "s3://your-bucket/catalog-location/"
     },
     "createTimestamp": 1731818113312,
     "lastUpdateTimestamp": 1731818113312,
     "entityVersion": 1,
     "storageConfigInfo": {
       "storageType": "S3",
       "roleArn": "arn:aws:iam::012345678901:role/jdoe",
       "externalId": null,
       "userArn": null,
       "region": "us-east-2",
       "allowedLocations": [
         "s3://your-bucket/catalog-location/"
       ]
     }
   }
   
   ```


-- 
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]

Reply via email to