Skip to content

Commit

Permalink
proper region pass
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechsromek committed Aug 20, 2024
1 parent 3b21c20 commit 0510757
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/orb-stage-helper-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
kubernetes.io/arch: amd64
containers:
- name: smpcv2-signup-service-helper
image: ghcr.io/worldcoin/gpu-iris-mpc:fcdc688ee705a7bdf581b293b2e60c72222e6790
image: ghcr.io/worldcoin/gpu-iris-mpc:3b21c20235536b392aef3119ddfc5014daf3d66c
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
Expand Down
4 changes: 2 additions & 2 deletions iris-mpc-common/src/helpers/sqs_s3_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ use std::time::Duration;
pub async fn upload_file_and_generate_presigned_url(
bucket: &str,
key: &str,
region: &str,
region: &'static str,
contents: &[u8],
) -> Result<String, SharesDecodingError> {
// Load AWS configuration
let region_provider = RegionProviderChain::default_provider().or_else("us-east-1");
let region_provider = RegionProviderChain::default_provider().or_else(region);
let config = aws_config::from_env().region(region_provider).load().await;

// Create S3 client
Expand Down

0 comments on commit 0510757

Please sign in to comment.