Posts

Showing posts with the label AWS

How to point DNS form Godaddy Domain to AWS Route 53

Image
  Hi Everyone.. ဒီကနေ့ကတော့ sharing လုပ်ပေးသွားမယ့်အရာကတော့ DNS အကြောင်းလေးပါ။ ကိုယ်တိုင်လဲတိုင်ပါတ်ခဲ့ရတော့ ဘဝတူများရှိရင်အသုံးဝင်အောင်ပါ။ Domain name ကို တခြား provider တခုစီကဝယ်ထားပြီး DNS record တွေကို AWS Route 53 မှာ manage လုပ်ချင်တယ်ဆိုရင် တော့ဒီ topic ကအဆင်ပြေမှာပါ။ အခု lab ကတော့ Godaddy နဲ့ လုပ်ထားတာဖြစ်ပြီး ကျန် တဲ့ provider တွေဆိုလဲ လုပ်ပုံလုပ်နည်းတူညီနိုင်ပါတယ်။ အရင်ဆုံး AWS Route 53 ကိုသွားပြီ Hosted Zone တခုဆောက်ပါ။ ကိုယ်ပိုင် domain name ေပးပါ။ description ကတော့မထည့်လဲရပေမယ့် အလေ့အကျင့်ဖြစ်အောင် ထည့်ပေးပါ။ Public domain ဖြစ်တဲ့အတွက် public hosted zone ကိုရွေးပေးရပါမည်။ Create Hosted zone ကိုclick ပါ။ ပြီးသွားရင် hosted zone ကိုရွေးပြီး click လိုက်ရင် ဒီအောက်က box လေးမြင်ရပါမည်။ ဒါဆိုရင် type မှာ NS ပါတာကိုရွေးလိုက်ရင် NS server name တွေကိုတွေ့ရမှာဖြစ်ပြီး copy ထားပါ။ ဒါဆိုရင် AWS ဘက်ခြမ်းက လုပ်စရာတဝက်ပြီးသွားပြီဖြစ်လို့ Godaddy ကိုသွားကြပါစို့။ Godaddy မှာ account ကို login ဝင်ပြီး Domain ထဲက ကို့ domian ကို click ပါ။ DNS ထဲက Nameservers ကိုရွေးပြီး Change Nameserve...

How to setup AWS VPC Peering (VPC to VPC)

Image
  Hi Everyone... ဒီကနေ့တော့ VPC Peering လုပ်တဲ့ အကြောင်းလေးပြောပြပေးသွားမှာပါ။ VPC peering ဘာလို့လုပ်တာလဲ ဘယ်အချိန်တွေမှာသုံးတာလဲဆိုတာကို ကြည့်ရအောင်... သိတဲ့ အတိုင်း ပဲ AWS networking မှာ VPC ကမပါမဖြစ်အရေးပါပါတယ် AWS account တခုရဲ့ AWS region တခုမှာ VPC 5ခုအများဆုံး ထားလို့ရပါတယ်... AZ မဟုတ်ပါဘူး အဲ့ဒါလေးတော့သတိထားရမှာပါ.. peering က one to one ဖြစ်တဲ့အတွက် VPC များလာရင်တော့ configuation complex ဖြစ်လာပါမယ်၊ နောက်တခုကတခြား AWS account တွေရဲ့ VPC နဲ့ချိတ်ဆက်သုံးချင်တာတွေလဲရှိနိုင်ပါတယ် အဲ့လို VPC တွေများလာမယ်ဆိုရင်တော့ Transit Gateway ကိုသုံးတာက ပိုစိတ်ချမ်းသာရပါတယ်။ VPC နည်းသေးတယ် နောင်လဲတိုးလာဖို့ မရှိသေးဘူးဆိုရင်တော့ အခုနည်းလမ်းက ပိုအဆင်ပြေပါတယ်. ဆိုတော့ Pubilc VPC နဲ့ Private VPC ဆိုပြီးရှိတယ်ဆိုပါစို့ Pubilc VPC ထဲက webserver က Private VPC ထဲ က database ကိုလှမ်းသုံးချင်တယ်ဆိုရင် အဲ့ဒီ VPC တွေကို peering လုပ်ပေးဖို့လိုပါတယ်.. Peering လုပ်မယ်ဆိုရင်တော့ VPC ထဲက peering connections ကိုရွေးရပါမယ်. ပြီးရင်တော့ Create peering connections ကို click ပါ၊ ဒီ box ကျလာရင်တော့ name မှာ ပေးချ...

AWS named profile with Access Key

Image
Named profile    A named profile is a collection of settings and credentials that you can apply to a AWS CLI command. Requirement  aws users  aws cli    Creating the User access key Access to your aws console account and open to iam ( https://console.aws.amazon.com/iam/ )   Choose users    Choose security credential tap      In the Access keys section, choose Create access key .    To download the key pair, choose Download .csv file .   Creating AWS named profile    $ aws configure AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE (Your key id) AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY (Your Secret Key) Default region name [None]: ap-southeast-1   This will have created the ~/.aws/credentials file and ~/.aws/config populated it with the credentials settings.   $ ls -la ~/.aws/ total 16 drwxr-xr-x       4...