rancherfederal / rke2-aws-tf

MIT License
84 stars 68 forks source link

Error setting default region #46

Open AbrohamLincoln opened 3 years ago

AbrohamLincoln commented 3 years ago

https://github.com/rancherfederal/rke2-aws-tf/blob/71146b5b6a9acb61edbb7f867b14ab2fe9cf4da9/modules/userdata/files/rke2-init.sh#L115

This doesn't work in certain environments. This is more portable, but introduces a dependency on jq"

 aws configure set default.region "$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region)"
aleiner commented 1 year ago

Can you please elaborate on which environments this may not work in?