Skip to content

Commit ce85da9

Browse files
committed
Update lambda function to fetch account id from SSM
1 parent 9d4b74e commit ce85da9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lambda-function/preview_url_mapper/adapters/dynamodb_adapter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def __init__(
1010
region: str = 'us-east-1'
1111
) -> None:
1212
self.dynamodb = boto3.resource('dynamodb', region_name=region)
13-
self.ssm_client = boto3.client('ssm', region_name=region)
13+
# SSM parameter is in the eu-west-1 region
14+
self.ssm_client = boto3.client('ssm', region_name="eu-west-1")
1415
self.response = self.ssm_client.get_parameter(
1516
Name=f"/__deployment__/applications/lambda-at-edge/preview-url-mapper/environment-account-id"
1617
)

0 commit comments

Comments
 (0)