This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
# Enable automatic package updates and upgrades during cloud-init execution | |
package_update: true | |
package_upgrade: true | |
packages: | |
# Security and Hardening | |
- ufw | |
- fail2ban |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
example of executing a bash script in tf | |
*/ | |
locals { | |
tables = [ | |
aws_dynamodb_table.organization.name | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#update and install some dependencies | |
sudo apt-get update && apt-get upgrade -y; | |
sudo apt-get install -y debconf-utils zsh htop libaio1; | |
#set the root password | |
DEFAULTPASS="rootpass" | |
#set some config to avoid prompting | |
sudo debconf-set-selections <<EOF | |
mysql-apt-config mysql-apt-config/select-server select mysql-8.0 |