i would like to get my aws account id programmatically when running an application on AWS EKS on Fargate.
On EC2 instances I can simply call http://169.254.169.254/latest/dynamic/instance-identity/document
but I can not on fargate.
Can I get the account id without using aws sts get-caller-identity
?
Thanks for your help.