The IAM roles and Pod Identity guide is now maintained at https://agentrelay.com/docs/self-hosting/iam-pod-identity.
This gist is retired and no longer updated. Use the docs: the scripts there are checked downloads (SHA256SUMS), and the steps include fixes made since this gist.
All self-hosting guides: https://agentrelay.com/docs/self-hosting