Monday, December 20, 2021

Node + Typescript : Typescript + Node

https://stackoverflow.com/questions/36999461/how-to-install-only-devdependencies-using-npm


npm init -y

npm i -D typescript

npx tsc example.ts

node example.js



https://www.youtube.com/watch?v=1UcLoOD1lRM


https://www.youtube.com/watch?v=WBPrJSw7yQA

Terraform : terraform commands

  1. terraform init
  2. terraform plan
  3. terraform apply
  4. terraform destroy

https://www.youtube.com/watch?v=JHiSGnh5Two&list=PLwbWIFE49l8kxe3PLftHFrwIYSfhNxaVZ&index=2

  • .terraform
  • .terraform.lock.hcl
  • terraform.tfstate 
  •  terraform.tfstate.backup


Terraform : TF2

https://registry.terraform.io/providers/hashicorp/aws/latest/docs

https://www.youtube.com/watch?v=JHiSGnh5Two&list=PLwbWIFE49l8kxe3PLftHFrwIYSfhNxaVZ&index=2

https://www.youtube.com/watch?v=SLB_c_ayRMo 

https://www.youtube.com/watch?v=JHiSGnh5Two&list=PLwbWIFE49l8kxe3PLftHFrwIYSfhNxaVZ&index=3

https://www.youtube.com/watch?v=esGezkpzpRo&list=PLwbWIFE49l8kxe3PLftHFrwIYSfhNxaVZ&index=4


resource "aws_instance" "tcw" {

  ami = "ami-0ed9277fb7eb570c9"
  instance_type = "t2.micro"
  tags = {
    Author = "KK"
    ProjectManager = "PM"
    Name = "TCW EC2Instance"
  }
}

resource "aws_ec2_tag" "tcw_nameTag" {
  resource_id = aws_instance.tcw.id
  key = "Name"
  value = "TCW EC2Instance"
}

#Configure the AWS Provider
provider "aws" {
    region = "us-east-1"
}

Terraform : Terraform 1

 


Monday, December 13, 2021

Kubectl: Load Balancer : Internal LB : Does not change , even if you restart POD

 em-ui                             LoadBalancer   172.20.221.225   internal-a54ec7ad6f02c49899f5bbd68ce6da3f-74411592.us-east-1.elb.amazonaws.com

em-ui                             LoadBalancer   172.20.221.225   internal-a54ec7ad6f02c49899f5bbd68ce6da3f-74411592.us-east-1.elb.amazonaws.com

Azure : How to whitelist IP Address Azure : Azure South India Region

https://docs.microsoft.com/en-us/azure/devops/organizations/security/allow-list-ip-url?view=azure-devops&tabs=IP-V4

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass