mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 09:39:56 +00:00
9 lines
254 B
Bash
Executable File
9 lines
254 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ACCOUNT=$(aws sts get-caller-identity | jq -r .Account)
|
|
|
|
for U in $(cat users.txt); do
|
|
echo "Attaching policy to user $U ..."
|
|
aws iam attach-user-policy --user-name $U --policy-arn arn:aws:iam::$ACCOUNT:policy/user.container.training
|
|
done
|