Skip to content

Instantly share code, notes, and snippets.

View josephphyo's full-sized avatar

Phyo Min Htun (Joseph) josephphyo

View GitHub Profile
@josephphyo
josephphyo / perChecker.py
Created May 4, 2021 18:07
Stack Exercise - Python
## (5+6)*(7+8)/(4+3) #Checking Bracket with Stack
## from stack (FileName) (stack.py) import Stack (class)
from stack import Stack
def perChecker(symbolString):
s = Stack()
balanced = True
index = 0
while index < len(symbolString) and balanced:
symbol = symbolString[index]
@josephphyo
josephphyo / sshd config
Last active December 29, 2021 14:24
Jump Private Server Via Bastion Host Single Hop (Linux or Mac Host)
<< Add Config to sshd config - ~/.ssh/config >>
# vim ~/.ssh/config
=====================================
### Bastion Host Jump Config
## Private Server
Host private-server-1
HostName 192.168.1.2
User ubuntu
IdentityFile /path/private_key.pem

IRSA in EKS within same and across AWS Accounts

This is a gist of examples also mentioned in the blog IAM Roles for Service Accounts (IRSA) in AWS EKS within and cross AWS Accounts. Prerequisite for this gist is to create the EKS Cluster as explained in my earlier blog Create Amazon EKS Cluster within its VPC using Terraform, OR you can use this github repository.

Running Example for IRSA within same account

Assuming you have the EKS Cluster running and your AWS CLI is configured to talk to the AWS Account where your EKS Cluster is running. If not please follow the our earlier blog on How to create an EKS Cluster using Terraform