Adds Swap for Cost

This commit is contained in:
2023-10-24 23:04:17 -03:00
parent 4b5c9dbcc2
commit 8aaa518baa

View File

@@ -1,6 +1,13 @@
#!/bin/bash #!/bin/bash
# Setting up swap space
sudo fallocate -l 2G /swapfile
sudo mkswap /swapfile
sudo chmod 600 /swapfile
sudo swapon /swapfile
# Configuring ssh keys
echo -e "${extra_key}" >> /home/ubuntu/.ssh/authorized_keys; echo -e "${extra_key}" >> /home/ubuntu/.ssh/authorized_keys;
echo -e "${terraform_key}" >> /home/ubuntu/.ssh/authorized_keys; echo -e "${terraform_key}" >> /home/ubuntu/.ssh/authorized_keys;