Skip to content

Commit

Permalink
add all keys to user data
Browse files Browse the repository at this point in the history
  • Loading branch information
mojotalantikite committed Feb 8, 2024
1 parent 6cee323 commit 399e8a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions services/uploads/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 399e8a6

Please sign in to comment.