Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: how to assign a default AWS region? #88

Closed
itonics-tbeauvais opened this issue May 8, 2019 · 1 comment
Closed

Question: how to assign a default AWS region? #88

itonics-tbeauvais opened this issue May 8, 2019 · 1 comment

Comments

@itonics-tbeauvais
Copy link

Everything I use Clisso get, I have to set up the AWS region again. Can there be a way to set this up in the provider? I can't seem to use the "region" for this as it seems that it is used for something else.

@johananl
Copy link
Collaborator

johananl commented May 8, 2019

Hi @itonics-tbeauvais.

The AWS region setting tells the AWS CLI/SDK which API endpoint to use when calling an AWS service. IAM credentials are global on AWS, that is - the same credentials can be used with multiple regions.
Therefore, Clisso doesn't deal with AWS regions and has no real way of influencing which region you use when calling an AWS service. It is up to you to specify the AWS region you use.

I suggest you do one of the following, depending on your use case and personal preference:

  • Configure a default AWS region using the AWS CLI (run aws configure and set a region interactively).
  • Set the AWS_REGION environment variable in your shell.
  • Specify the --region flag in your AWS CLI commands, or set the relevant variable when creating an AWS client using one of the AWS SDKs.

Good luck!

@johananl johananl closed this as completed May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants