Skip to content

AWS Security Group

เมื่อต้องการแสดง Security Group ทั้งหมด หาก AWS configure ไม่ได้กำหนด region ตอนที่ run aws จำเป็นต้องกำหนด region หรือ หากต้องการใช้ region อื่น สามารถกำหนด region ได้ หากต้องการระบุ AWS Key ให้กำหนด โดย –profile

ติดตั้ง AWS CLI

สำหรับ mac os หลังจาก install สามารถตรวจสอบ version ได้ โดย

เริ่มต้นใช้ AWS CLI

Run command เพื่อกำหนด key หลังจากใส่ค่าต่างๆแล้ว ใน mac จะมี file ~/.aws/credentials ในกรณีที่มี AWS Access Key หลายอัน สามารถกำหนดชื่อ profile ได้ เช่น ตั้งชื่อว่า secondKey ตอนที่ run aws ถ้าหากไม่ได้ระบุ profile โปรแกรม aws จะใช้ profile default