Open AbrohamLincoln opened 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)"
Can you please elaborate on which environments this may not work in?
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"