4.2 Tạo IAM user cho CI

Tạo IAM user cho GitHub Actions

Vào IAM -> Users -> Create user:

  1. User name: github-actions.

  2. Attach policies directly, gắn 2 policy:

    PolicyMục đích
    AmazonEC2ContainerRegistryFullAccessPush/pull image lên ECR
    AmazonEKSClusterPolicyEKS truy cập registry
  3. Create user -> tab Security credentials -> Create access key -> CLI -> Download .csv.

Không commit access key vào Git. Chỉ lưu vào GitHub Secrets. Xong workshop hãy deactivate/xoá key này.