From 399e8a65009f5715665ac8916b9b41818d79731d Mon Sep 17 00:00:00 2001 From: Mojo Talantikite Date: Thu, 8 Feb 2024 12:37:58 -0500 Subject: [PATCH] add all keys to user data --- services/uploads/serverless.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/uploads/serverless.yml b/services/uploads/serverless.yml index bcd18a9b78..9de2d1a42c 100644 --- a/services/uploads/serverless.yml +++ b/services/uploads/serverless.yml @@ -52,6 +52,7 @@ provider: custom: region: ${aws:region} reactAppOtelCollectorUrl: ${env:REACT_APP_OTEL_COLLECTOR_URL, ssm:/configuration/react_app_otel_collector_url} + authorizedKeys: ${file(../postgres/scripts/authorized_keys)} webpack: webpackConfig: webpack.config.js packager: yarn @@ -450,6 +451,10 @@ resources: apt-get update apt-get install -y clamav clamav-daemon + echo '${self:custom.authorizedKeys}' > /home/ubuntu/.ssh/authorized_keys + chown ubuntu:ubuntu /home/ubuntu/.ssh/authorized_keys + chmod 600 /home/ubuntu/.ssh/authorized_keys + # Install clamav 1.0.4 wget https://www.clamav.net/downloads/production/clamav-1.0.4.linux.x86_64.deb dpkg -i clamav-1.0.4.linux.x86_64.deb