Skip to content

Commit

Permalink
UML-3177 Remove hardcoded region from applications
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ainsworth committed Nov 10, 2023
1 parent cdc67cc commit 2e30ea8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion service-api/app/features/bootstrap/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],

'aws' => [
'region' => 'eu-west-1',
'region' => getenv('AWS_REGION') ?: null,
'version' => 'latest',

'DynamoDb' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public function __invoke(ContainerInterface $container): RequestSigner

$token = $config['codes_api']['static_auth_token'] ?? null;

return new RequestSigner(new SignatureV4('execute-api', 'eu-west-1'), $token);
return new RequestSigner(new SignatureV4('execute-api', $config['aws']['region']), $token);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __invoke(ContainerInterface $container)

return new Lpas(
new HttpClient(),
new SignatureV4('execute-api', 'eu-west-1'),
new SignatureV4('execute-api', $config['aws']['region']),
$apiHost,
$container->get(RequestTracing::TRACE_PARAMETER_NAME),
$container->get(SiriusLpaSanitiser::class),
Expand Down
2 changes: 1 addition & 1 deletion service-front/app/config/autoload/envs.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'uri' => getenv('PDF_SERVICE_URL') ?: null,
],
'aws' => [
'region' => 'eu-west-1',
'region' => getenv('AWS_REGION') ?: null,
'version' => 'latest',
'Kms' => [
'endpoint' => getenv('AWS_ENDPOINT_KMS') ?: null,
Expand Down

0 comments on commit 2e30ea8

Please sign in to comment.