Skip to content

Instantly share code, notes, and snippets.

View NFarrington's full-sized avatar

Neil Farrington NFarrington

View GitHub Profile
@NFarrington
NFarrington / AllowSSHFromIP.php
Created November 3, 2018 09:12 — forked from HSPDev/AllowSSHFromIP.php
Complementary code and IAM policy for "You don't need that Bastion host"
<?php
// For laravel 5 based systems
// /path/to/project/app/Console/Commands/AllowSSHFromIP.php
namespace App\Console\Commands;
use Aws\Ec2\Ec2Client;
use Carbon\Carbon;
use Illuminate\Console\Command;