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
| import boto3 | |
| import sys | |
| import pprint | |
| # Let's use Amazon S3 | |
| ec2 = boto3.client('ec2') | |
| ec2Res = boto3.resource('ec2') | |
| if len(sys.argv) < 2: | |
| print("No argument provided ... just listing") |
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
| #!/bin/bash | |
| # Configuration | |
| NEW_USER="MY_NEW_USER" | |
| PASSWORD="MY_PASSWORD" | |
| # 1. Update system | |
| apt update && apt upgrade -y | |
| # 2. Install Sudo and OpenSSH Server |