You can set these in a couple of ways.
First, create a file at ~/.aws/config (or ~/.aws/credentials).
For example:
[default]
aws_access_key_id=foo
aws_secret_access_key=bar
region=us-west-2
Secondly, you can add environment variables for each of your settings.
For example, create the following environment variables:
AWS_DEFAULT_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
Thirdly, you can pass the region in as a command-line argument. For example:
aws eb deploy --region us-west-2
You don't require to run AWS configure in these cases as the cli is configured.
If you want to learn more, check out this AWS Certification by Intellipaat.