File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
main/java/uk/nhs/adaptors/gp2gp/common/storage
test/java/uk/nhs/adaptors/gp2gp/common/configuration Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1616@ Configuration
1717@ ConfigurationProperties (prefix = "gp2gp.storage" )
1818public class StorageConnectorConfiguration {
19+
20+ private static final Region REGION = Region .EU_WEST_2 ;
1921 private static final String S3_PREFIX = "s3" ;
2022
2123 private String type ;
@@ -27,7 +29,7 @@ public class StorageConnectorConfiguration {
2729 @ Bean
2830 public S3Client getS3Client () {
2931 if (StringUtils .isNotBlank (trustStoreUrl ) && trustStoreUrl .startsWith (S3_PREFIX )) {
30- return S3Client .builder ().region (Region . EU_WEST_2 ).build ();
32+ return S3Client .builder ().region (REGION ).build ();
3133 }
3234
3335 return null ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ static void setUp() {
3737 .endpointOverride (URI .create ("http://localhost:" + PORT ))
3838 .credentialsProvider (StaticCredentialsProvider .create (
3939 AwsBasicCredentials .create ("accessKey" , "secretKey" )))
40- .region (Region .US_EAST_1 )
40+ .region (Region .EU_WEST_2 )
4141 .serviceConfiguration (S3Configuration .builder ().pathStyleAccessEnabled (true ).build ())
4242 .build ();
4343
You can’t perform that action at this time.
0 commit comments