EIP <--> (EC2 Instance) <--> (AWS AD DC with ldaps enabled)
cat ldaps_iptables
#!/bin/sh
sysctl -w net.ipv4.ip_forward=1| #!/bin/bash | |
| detect_os (){ | |
| # Check the OS version | |
| if [ -f /etc/os-release ]; then | |
| source /etc/os-release | |
| else | |
| # Most likely a Centos5/6 box | |
| if [ -f /etc/redhat-release ]; then | |
| if grep -iq centos "/etc/redhat-release"; then |
EIP <--> (EC2 Instance) <--> (AWS AD DC with ldaps enabled)
cat ldaps_iptables
#!/bin/sh
sysctl -w net.ipv4.ip_forward=1| ''' | |
| Rotate AWS access keys for each profile in the users ${HOME}/.aws/credentials file. | |
| Note: the default profile is not altered | |
| Author: John Auld | |
| ''' | |
| import configparser | |
| import os | |
| import boto3 |
| ''' | |
| Delete a bucket that contains versions. | |
| Author: John Auld | |
| ''' | |
| import boto3 | |
| my_bucket = 'replace-with-aws-s3-bucket-name' | |
| delete_bucket = False | |
| delete_versions = False |