Skip to content

Instantly share code, notes, and snippets.

View aminmiri's full-sized avatar
🚀

Amin Miri aminmiri

🚀
View GitHub Profile
@aminmiri
aminmiri / add_on.tf
Last active July 13, 2025 02:46
EKS EBS CSI Driver Setup with Pod Identity
resource "aws_iam_role" "ebs_csi_driver" {
name = "${var.cluster_name}-ebs-csi-driver"
assume_role_policy = jsonencode({
Version = "2012-10-17",
Statement = [{
Sid = "AllowEksPodIdentityAgent"
Effect = "Allow"
Principal = {
Service = "pods.eks.amazonaws.com"
@aminmiri
aminmiri / Securing_Git_with_SSH_and_FIDO_security_keys.sh
Last active July 13, 2025 02:47
Protect SSH access to your repositories using a security key
# CHNAGE PATH ACCORDING TO YOUR WORKING ENVIRONMENT
# Generate the SSH Key
ssh-keygen -t ed25519-sk -O resident -C "yubico_key_0" -f ~/.ssh/yubico_key_0
vi ~/.ssh/config
Host github.com
HostName github.com
User git