Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standardize AWS credential names #922
Standardize AWS credential names #922
Changes from 4 commits
1310b0e
953a883
f7384e9
0abae8f
94337c2
996c874
ce5b604
a67f549
7a85275
846fc08
c91aaeb
964132f
fd2af56
dd65c6d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How common is it to have a separate
access-key-id
for glue and the table itself? The S3FileIO would not pick up theglue.access-key-id
:iceberg-python/pyiceberg/io/pyarrow.py
Line 349 in 3f44dfe
This way you would need to set both
glue.access-key-id
(which is used for authenticating against Glue), and then you need to sets3.access-key-id
to ensure that it can access the metadata on the bucket. Maybe good to highlight this on the docs, WDYT?I'm not an AWS expert, but my gut feeling is that normally people rely on
AWS_ACCESS_KEY_ID
to be picked up for both Glue and S3, but I prefer to be able to put this in the~/.pyiceberg.yaml
as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestions! I've updated the doc to explicitly indicating that
glue.*
properties are for Glue Catalog only. I've also added thes3.*
properties to the example to make this clear.The
client.*
properties will cover this case. When user setclient.*
properties, both catalog and FileIO can pick up the credentials. However, due to the limitation of pyarrow's S3FileSystem as noted in #570, we cannot yet support a unifiedprofile-name
property.I added a separate section
Unified AWS Credentials
for theclient.*
properties. Please let me know WDYT.Here are some preview of the updated page:
![Screenshot 2024-07-15 at 00 04 10](https://private-user-images.githubusercontent.com/140284484/348623377-6c32dd75-edc9-41ef-8e71-4a1e6f76630c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjg0NTgsIm5iZiI6MTczOTE2ODE1OCwicGF0aCI6Ii8xNDAyODQ0ODQvMzQ4NjIzMzc3LTZjMzJkZDc1LWVkYzktNDFlZi04ZTcxLTRhMWU2Zjc2NjMwYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNjE1NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NjczNDU2YTE0Y2ZmZTkwMGIyNTdjMWU2NGJlODMzYmQ1YjY5OTcxYThjOGQwZDFhNDNlZmZkODE3Yzg4MGY0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.QZ2uUpBIzYEgTppEjsWUYoyB9Cq_aHyIjN40fJJFpYo)
![Screenshot 2024-07-15 at 00 05 18](https://private-user-images.githubusercontent.com/140284484/348623368-7964a762-7aec-4c09-9ad9-9b62f92bd0ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjg0NTgsIm5iZiI6MTczOTE2ODE1OCwicGF0aCI6Ii8xNDAyODQ0ODQvMzQ4NjIzMzY4LTc5NjRhNzYyLTdhZWMtNGMwOS05YWQ5LTliNjJmOTJiZDBlZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNjE1NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yY2RhY2U0NmIxMjdjOWQxOGY3ZjJlNWIwMWEwMDQ0MmY1NGY0YWM2ZDk2Mzc2ODVhMzE1NGVhMTgyZTIzY2Y3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.jwVy35NIym7_SxGmXRouUEw_-KObc_VTZpPsWrgeCIM)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense, I'm good with that now. At some point we should have a bigger conversation across languages to unify this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I chose
client.
for unified configurations because in java:https://github.com/apache/iceberg/blob/c68abfc9fd3956077b43aba20441f089bb8b93d6/aws/src/main/java/org/apache/iceberg/aws/AwsClientProperties.java#L67
client.region
is used for configurations that affect all the clients.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, that's a good find 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to highlight this in the PR description!