AWS ec2 instances, Vault v1.4.3 docker container, Consul 1.2.2 docker container
vault write \ auth/aws/role/test1\ auth_type=iam \ policies=example-policy \ max_ttl=500h \ bound_iam_principal_arn=arn:aws:iam::xxxxx:role/vault-aws-auth-role-xxxx
It causes vault to hang for 1-2mins, meaning the AWS health check fails and the instance gets terminated.
I’ve tried running the vault write command inside the vault docker container and it gives the same error
Error writing data to auth/aws/role/test1: context deadline exceeded.
We have checked logs, but we can’t seem to find anything useful as at the time of the command vault just hangs.
Any help on the above would be appreciated and let me know if you have any questions