Share Tip ในการสร้างและจัดการ AWS Account เพื่อใช้ Lab ของผม

PlAwAnSaI

Administrator
Code:
https://nopnithi.medium.com/a86e5d6abd16
ก็คล้ายๆ กันคับ สรุปเป็นข้อๆ ตามนี้:
  1. สร้าง Email Forwarding ชื่อใหม่
    Code:
    https://nopnithi.medium.com/tips-and-tricksในการสมัครใช้งาน-aws-account-free-tier-เพื่อ-lab-921c33a54ff8
  2. สร้าง Account AWS Root ใหม่
  3. ผูก Multi Factor Authentication (MFA) ทั้ง Root & IAM User
  4. ตั้ง Budget ให้แจ้งเตือนหากค่าใช้จ่ายเกิน 1$ (จริงๆ AWS มี Template ให้เลือก 0.01$ อยู่ด้วย)
  5. สร้าง IAM User เอามาใช้แทน Root:
    1. IAM > Create Account Alias
    2. Code:
      https://kloudle.com/academy/how-to-create-an-iam-admin-user-in-aws
  6. ให้ IAM ดู Bills ได้ด้วย:
    1. Root Account > Account > IAM user and role access to Billing information > Edit > Activate
    2. เพิ่ม IAM Policy - Read-Only_Billing_Access ให้ IAM User:
      Code:
      {
          "Version": "2012-10-17",
          "Statement": [
              {
                  "Sid": "BillingReadOnly",
                  "Effect": "Allow",
                  "Action": [
                      "aws-portal:ViewBilling",
                      "aws-portal:ViewUsage",
                      "aws-portal:ViewPaymentMethods",
                      "aws-portal:ViewAccount",
                      "ce:Get*",
                      "ce:List*",
                      "budgets:ViewBudget",
                      "pricing:GetProducts"
                  ],
                  "Resource": "*"
              }
          ]
      }
:cool:
 
Last edited:
Top