1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
2
Hello rePost-User-9219791,
You are facing this issue because your terraform variable assume_role
is a list of role names.
The Principal property of the IAM policy only allows role ARNs as valid principals. Therefore, pass the list of role ARNs instead of role names as shown below.
assume_role=["arn:aws:iam::<account_id>:role/eks-test-dev","arn:aws:iam::<account_id>:role/eks-test-admin"]
Also make sure that the above roles exist in your AWS account before creating the IAM role resource using terraform.
I hope this helps!
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 4 Monaten
- AWS OFFICIALAktualisiert vor einem Jahr
- Wie gewähre ich anderen IAM-Benutzern und -Rollen nach der Cluster-Erstellung in Amazon EKS Zugriff?AWS OFFICIALAktualisiert vor 2 Jahren
Thanks. I did the same, but the list I passed didn't exist in my AWS account.