Skip to content

Instantly share code, notes, and snippets.

View vamshisiddarth's full-sized avatar

Vamshi Siddarth vamshisiddarth

View GitHub Profile
@vamshisiddarth
vamshisiddarth / maintenance.py
Created December 5, 2020 17:57
Kubernetes Maintenance Script
import boto3, os, sys
from kubernetes import client, config
import kubernetes.client
import subprocess
from slack import WebClient
from slack.errors import SlackApiError
dir_path = os.path.dirname(os.path.realpath(__file__))
# Declaring the AWS account details
@vamshisiddarth
vamshisiddarth / aws_iam_secret_to_smtp_password.md
Created August 19, 2020 07:43 — forked from damusix/aws_iam_secret_to_smtp_password.md
Convert AWS IAM credentials to AWS SMTP credentials

Convert AWS IAM credentials to AWS SMTP credentials

If you do, or want to, use AWS to deploy your apps, you will end up using AWS SES via SMTP when you're launching an app that sends out emails of any kind (user registrations, email notifications, etc). For example, I have used this configuration on various Ruby on Rails apps, however, it is just basic SMTP configurations and crosses over to any framework that supports SMTP sendmail.

There are two ways to go about this:

Luckily, you found this MD file and the NOT SO EASY WAY is suddenly copy-pasta... sudo yum....

Keybase proof

I hereby claim:

  • I am vamshisiddarth on github.
  • I am vamshisiddarth (https://keybase.io/vamshisiddarth) on keybase.
  • I have a public key ASDP4PtsrHaBYHOlB5Qy9Ew90piEwZd2q4GjA0q1gVPZmQo

To claim this, I am signing this object: