The code I used:
The first few times were fine. Then, on the third
terraform apply, I got:
aws_security_group_rule.demo-node-ingress-self: Creation complete after 3s (ID: sgrule-3180869992) Error: Error applying plan: 1 error(s) occurred: * aws_eks_cluster.demo: 1 error(s) occurred: * aws_eks_cluster.demo: error creating EKS Cluster (my-cluster): InvalidParameterException: Error in role params status code: 400, request id: d063ca1b-ecb0-11e8-acff-5347eb3dd87f
No idea what the issue was but deleting
.terraform fixed the problem.