Skip to content

Commit

Permalink
chore: revert S3 key changes for deprecated keys
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Carman <[email protected]>
  • Loading branch information
hntd187 authored and rtyler committed Oct 25, 2024
1 parent 42dcb49 commit a13cb71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/aws/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ pub const S3_OPTS: &[&str] = &[
AWS_S3_LOCKING_PROVIDER,
AWS_IAM_ROLE_ARN,
AWS_IAM_ROLE_SESSION_NAME,
AWS_S3_ASSUME_ROLE_ARN,
AWS_S3_ROLE_SESSION_NAME,
AWS_WEB_IDENTITY_TOKEN_FILE,
AWS_ROLE_ARN,
AWS_ROLE_SESSION_NAME,
Expand Down
5 changes: 5 additions & 0 deletions crates/aws/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,11 @@ mod tests {
"arn:aws:iam::123456789012:role/some_role",
);
std::env::set_var(constants::AWS_IAM_ROLE_SESSION_NAME, "session_name");
std::env::set_var(
constants::AWS_S3_ASSUME_ROLE_ARN,
"arn:aws:iam::123456789012:role/some_role",
);
std::env::set_var(constants::AWS_S3_ROLE_SESSION_NAME, "session_name");
std::env::set_var(constants::AWS_WEB_IDENTITY_TOKEN_FILE, "token_file");

let options = S3StorageOptions::try_default().unwrap();
Expand Down

0 comments on commit a13cb71

Please sign in to comment.