Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
timweri committed Dec 19, 2024
1 parent 42b4e21 commit b601867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustica/src/signing/amazon_kms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,14 @@ impl SignerConfig for Config {
(Some(_), None) | (None, Some(_)) => return Err(
SigningError::InvalidAwsConfig("aws_access_key_id and aws_secret_access_key must either both defined or both undefined".to_string())
),
// If access key is not defined, use the default config
(Some(access_key_id), Some(secret_access_key)) => aws_config::from_env()
.region(Region::new(self.aws_region.clone()))
.credentials_provider(
Credentials::new(access_key_id, secret_access_key, None, None, "AmazonKMSSigner")
)
.load()
.await,
// If access key is not defined, use the default config
(None, None) => aws_config::from_env()
.timeout_config(timeout_config)
.region(Region::new(self.aws_region.clone()))
Expand Down

0 comments on commit b601867

Please sign in to comment.