We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fc074b commit a7af8daCopy full SHA for a7af8da
src/cdn.rs
@@ -2,7 +2,7 @@ use crate::Config;
2
use anyhow::{Context, Error, Result};
3
use aws_sdk_cloudfront::{
4
model::{InvalidationBatch, Paths},
5
- Client, RetryConfig,
+ Client, Region, RetryConfig,
6
};
7
use chrono::{DateTime, Utc};
8
use serde::Serialize;
@@ -35,7 +35,8 @@ impl CdnBackend {
35
CdnKind::CloudFront => {
36
let shared_config = runtime.block_on(aws_config::load_from_env());
37
let config_builder = aws_sdk_cloudfront::config::Builder::from(&shared_config)
38
- .retry_config(RetryConfig::standard().with_max_attempts(3));
+ .retry_config(RetryConfig::standard().with_max_attempts(3))
39
+ .region(Region::new(config.s3_region.clone()));
40
41
Self::CloudFront {
42
runtime: runtime.clone(),
0 commit comments