Vào IAM -> Users -> Create user:
User name: github-actions.
Attach policies directly, gắn 2 policy:
| Policy | Mục đích |
|---|---|
AmazonEC2ContainerRegistryFullAccess | Push/pull image lên ECR |
AmazonEKSClusterPolicy | EKS truy cập registry |
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.