I am using aws-cli to download application configuration on startup. I'm testing it both on the Amazon Linux AMI and Ubuntu Server AMI, on the Ubuntu server I install the cli via apt-get awscli.
To both instances I have set the same IAM role with read access to S3. On the Amazon Linux instance I am able to download the configuration with the following command:
aws s3 cp s3://myconfbucket/conf.json conf.json
and it resolves the region by itself. On the Ubuntu Server instance I have to provide -- region eu-west-1.
How is the Amazon Linux instance able to resolve the region and how could I get the same behaviour on the Ubuntu Server instance?