Skip to content

Instantly share code, notes, and snippets.

View HarishKM7's full-sized avatar

Harish KM HarishKM7

View GitHub Profile
@HarishKM7
HarishKM7 / samconfig.toml
Created February 12, 2021 08:20
AWS SAM CLI Config File Template
# https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-config.html
version = 0.1
# https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-build.html
[default.build.parameters]
parallel = true
profile = "hkm"
region = "ap-south-1"
# https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-local-invoke.html
@HarishKM7
HarishKM7 / replace-instances.sh
Created April 8, 2021 15:07
Bulk replace EC2 instances. Retain private IPs.
#!/usr/bin/env bash
# stop running this script if any command fails
set -e
echo Fetching instances tagged with Upgrade = Pending...
INSTANCES=$(aws ec2 describe-instances \
--filters "Name=tag:Upgrade,Values=Pending" \
--output json \
@HarishKM7
HarishKM7 / Work in Progress.md
Created May 26, 2021 14:53
Markdown for a "Work in Progress" badge.

@HarishKM7
HarishKM7 / Ondat + Kasten.md
Last active October 17, 2022 08:55
Steps to Evaluate Ondat + Kasten

1. Create Cluster for Ondat

Run eksctl create cluster -f ondat.yaml on:

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
  name: ondat
 region: ap-south-1