Skip to content

Instantly share code, notes, and snippets.

@GitKaran
GitKaran / arc-cert-manager.sh
Created September 11, 2023 22:13
arc-cert-manager
# Add the Helm repository for cert manager
helm repo add jetstack https://charts.jetstack.io
# Install cert-manager helm chart with CRDs
helm install \
cert-manager jetstack/cert-manager \
--namespace arc \
--create-namespace \
--version v1.12.4 \
--set installCRDs=true
@GitKaran
GitKaran / Adding ssh key to running EC2 instance.md
Last active May 30, 2020 16:39
This is helpful when you are not able to ssh to running instance because your key is not associated as authrorized keys

1. Add new key pair in AWS or if already added retrieve public key with the help of private key

ssh-keygen -y -f ~/.ssh/my-key-pair.pem

2. Stop EC2 instance from AWS console

3. add below to Actions --> Instance Settings --> View/Change User Data

@GitKaran
GitKaran / Terraform RSA key pair generation.md
Created May 29, 2020 18:10
Generate RSA for AWS using terraform

Generate public & private key pairs for AWS using terraform

1. Generate Keys

resource "tls_private_key" "example" {
  algorithm = "RSA"
  rsa_bits  = 4096
}

resource "aws_key_pair" "generated_key" {
@GitKaran
GitKaran / AWS with zsh.md
Last active May 29, 2020 18:11
Switching between AWS profiles using zsh completion

Create the completions directory:

mkdir -p ~/.oh-my-zsh/completions`

Change dir to the completions directory:

cd ~/.oh-my-zsh/completions`