Category: Coding
[Python] what mean if __name__==”__main__”:
Bài này thì giải thích về câu line code: Hiểu đơn giản là nếu bạn chạy trực tiếp file python thì biến __name__ sẽ có giá trị là __main__Bạn cần tham khảo video bên dưới.
[MongoDB] Creating MongoDB Atlas to integrate with your workload on any Cloud
1) Create MongoDB Cloud to integrate AWS, Google, or Azure Nếu công ty bạn đã sài AWS, Google Cloud, Azure. Thì đứng ngần ngại báo sếp ơi sài MongoDB Atlas luôn đi sếp Bạn login vào đường link bên dướihttps://www.mongodb.com/ Giờ chúng ta thử access vào Mongodb database 2) Set up VPC peering behind MongoDB…
Read More “[MongoDB] Creating MongoDB Atlas to integrate with your workload on any Cloud” »
[AWS] AWS Load Balancer Controller and Ingress are Installed by Terraform Helm Provider on EKS.
1) Introduction to all Ingress 2) AWS Load Balancer Controller 2.1) Introduction 2.2) Intalling AWS Load Balancer Controller with Terraform chúng ta có file:c4-01-lbc-datasources.tf Đầu tiên nó thực hiện download iam_policy.json thông qua data “http” Tiếp theo là bạn thực hiện tạo Policy và tạo 1 assume role rồi thực hiện add Policy vào Role…
[AWS] What’s serverless? This is Lambda.
What’s serverless?• Serverless is a new paradigm in which the developers don’t have to manage servers anymore…• They just deploy code• They just deploy… functions!• Initially… Serverless == FaaS (Function as a Service)• Serverless was pioneered by AWS Lambda but now also includes anything that’s managed: “databases, messaging, storage, etc.”• Serverless does not mean there…
[AWS] EKS IAM Roles for Service Accounts (IRSA) using Terraform
Tình huống là như thế này:Bạn có 1 workload(deployment, statefulSet, Job) trên k8sBạn muốn là workload trên k8s cũng có thể access các resources trên AWS thì làm sao?Cách 1: add access key và secret key vào workload thông qua Secret và Environment.Cách 2: sử dụng Service Account đã được cấp quyền access và gắn…
Read More “[AWS] EKS IAM Roles for Service Accounts (IRSA) using Terraform” »
[AWS] Encrypting your data easily via KMS on AWS
1) Symmetric Encryption How it works: Example: AES(Advance Encrypt Standard) – block cipher of 128, 192, 256 bits, most well-known and effective use. Take billions of years to crack, more secure than DES, Triple DES, IDEA.DES(Data Encrypt Standard)Triple DESIDEA (International Data Encryption Algorithm)TLS/SSL Protocol: session key Pros:– Encrypt & Decrypt large amount data quickly– Easy…
Read More “[AWS] Encrypting your data easily via KMS on AWS” »
[AWS] Demo “code build” with experiment easily on AWS
1) Creating ECR to hold the docker image 2) Set up Code Build to build image through Dockerfile 3) Recheck log of Code Build on CloudWatch File buildspec.yml 4) Provisioning CodeBuild(aws) through terraform Giờ chúng ta sẽ đến với việc demo code build bằng terraform.https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/codebuild_project Đầu Tiên là file demo_codebuild.tf Đầu tiên bạn để ý…
Read More “[AWS] Demo “code build” with experiment easily on AWS” »
Manage Kubernetes Secrets With External Secrets Operator
Hiện tại mình sẽ cần sync secret từ data secret nào đó lên thành secret trên k8schúng ta sẽ sử dụng external secret Mình sẽ focus vào external secret với AWS 1) Install External Secrets via Helm chart 2) Create User and Assume Role access Parameter Stores còn phần tạo assume role access vào Parameter…
Read More “Manage Kubernetes Secrets With External Secrets Operator” »
[Demo] Instructing configure AssumeRole – IAM on AWS
1) Overview Sau khi coi video của 1 bạn hướng dẫn về Assume role==>mình hiểu là assume role nghĩa là bạn A có quền đi vào các Con EC2 thuộc tài khoản của bạn A với ID là 1. và Nim có 1 tại khỏa AWS có ID là 2==> giờ bạn muốn Nim có…
Read More “[Demo] Instructing configure AssumeRole – IAM on AWS” »