Search code examples
amazon-web-servicesansibleamazon-eks

Ansible aws_eks_cluster module invalid parameter


I am using the older aws_eks_cluster module to create an EKS cluster, i am aware there is a newer one which is eks_cluster. I am passing temporary aws credentials i got from sts_assume_role to the module which are:

aws_access_key
aws_secret_key
security_token

They have been working fine authenticating with other modules. However with aws_eks_cluster module, I am getting an invalid length parameter for the security_token.

The security token length i am getting from sts_assume_role is 356 chars. however the error specifies a length between 33 and 126 chars.


Solution

  • It was a bug related to the old version of the module. The error is unrelated.