quick setup and usage guide for SSH access over SSM to private AWS EC2 instances
- python3
- awscli
- session-manager-plugin
git clone https://github.com/elpy1/ssm-tool.git
| aws route53 wait resource-record-sets-changed --id \ | |
| $(aws route53 change-resource-record-sets --hosted-zone-id \ | |
| "$(aws route53 list-hosted-zones-by-name --dns-name $2. \ | |
| --query HostedZones[0].Id --output text)" \ | |
| --query ChangeInfo.Id \ | |
| --output text \ | |
| --change-batch "{ \ | |
| \"Changes\": [{ \ | |
| \"Action\": \"$1\", \ | |
| \"ResourceRecordSet\": { \ |
quick setup and usage guide for SSH access over SSM to private AWS EC2 instances
git clone https://github.com/elpy1/ssm-tool.git| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
| <?php | |
| /* | |
| * Deleting users, from a file that is just a one-column, \n separated. list of ids | |
| Useing the | |
| _ _ _ | |
| (_) (_) | | |
| ___ _ __ _ _ __ ___ ___ _| |_ | |
| / __| '_ \| | '_ \ / _ \___| | __| | |
| \__ \ | | | | |_) | __/ | | |_ | |
| |___/_| |_|_| .__/ \___| |_|\__| API |
| server { | |
| listen 127.0.0.1:80 default_server; | |
| server_name 127.0.0.1; | |
| location /stub_status { | |
| stub_status on; | |
| access_log off; | |
| allow 127.0.0.1; | |
| deny all; | |
| } | |
| } |
| # Create a script that will use the AWS Route53 CLI to insert DNS TXT records for Let's Encrypt DNS validation | |
| echo 'aws route53 wait resource-record-sets-changed --id \ | |
| $(aws route53 change-resource-record-sets --hosted-zone-id \ | |
| "$(aws route53 list-hosted-zones-by-name --dns-name $2. | |
| --query HostedZones[0].Id --output text)" \ | |
| --query ChangeInfo.Id | |
| --output text \ | |
| --change-batch "{ | |
| \"Changes\": [{ | |
| \"Action\": \"$1\", |
rebase vs merge).rebase vs merge)reset vs checkout vs revert)git rev-parse)pull vs fetch)stash vs branch)reset vs checkout vs revert)| #!/usr/bin/env bash | |
| # | |
| # Author: Stefan Buck | |
| # License: MIT | |
| # https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
| # | |
| # | |
| # This script accepts the following parameters: | |
| # | |
| # * owner |
| ## Install NGINX | |
| ## when installing on Amazon Linux AMI, use: | |
| $ sudo yum install nginx -y | |
| ## when installing on Amazon Linux 2 AMI, use | |
| $ sudo amazon-linux-extras install nginx1.12 -y | |
| ## Install PHP and PHP-FPM | |
| # for PHP version 7.1 use php71 and php71-fpm instead | |
| $ sudo yum install php -y | |
| $ sudo yum install php-fpm -y |