Skip to content

Instantly share code, notes, and snippets.

View DevOps-Dad's full-sized avatar
💭
Feverishly typing

Joe Goldberg DevOps-Dad

💭
Feverishly typing
View GitHub Profile
@DevOps-Dad
DevOps-Dad / aws-session-manager.txt
Last active July 24, 2019 16:58
Configure AWS Session-Manager #aws #system-manager #session-manager
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
sudo dpkg -i session-manager-plugin.deb
session-manager-plugin
session-manager-plugin --version
Place server in CCSI-AWSCloudFormation Role
@DevOps-Dad
DevOps-Dad / CloudMapper.iam
Created February 25, 2019 19:09
CloudMapper IAM #AWS
You must have the following privileges (these grant various read access of metadata):
arn:aws:iam::aws:policy/SecurityAudit
arn:aws:iam::aws:policy/job-function/ViewOnlyAccess
And also:
{
"Version": "2012-10-17",
"Statement": [
{
@DevOps-Dad
DevOps-Dad / gist:1de40c85dc94b750cbdb4de902b51e08
Created February 6, 2019 16:54
Powershell Send-MailMessage to AWS SES
$AWS_ACCESS_KEY = "RealAccessKeyRightHere"
$AWS_SECRET_KEY = "TotallyRealSecretKeyRightHere"
$SECURE_KEY = $(ConvertTo-SecureString -AsPlainText -String $AWS_SECRET_KEY -Force)
$creds = $(New-Object System.Management.Automation.PSCredential ($AWS_ACCESS_KEY, $SECURE_KEY))
$from = "no-reply@emailrulz.com"
$to = "victim1@roadkill.com"
$subject = "Test SES Message"
$body = "Just testing that my AWS SES parameters are correct"

Keybase proof

I hereby claim:

  • I am devops-dad on github.
  • I am devops_dad (https://keybase.io/devops_dad) on keybase.
  • I have a public key ASBjAg-IM1pXDeUtaCccjzVszsyAVqvLYMQqDPl0YeS7FQo

To claim this, I am signing this object: