How to fix: " AccessDeniedException: You are in ap-southeast-1, but your directory region is us-east-1. Please use us-east-1 as region."

Viewed 1631

Im trying out aws quicksight getting started tutorial: https://docs.aws.amazon.com/quicksight/latest/user/embedded-dashboards-with-iam-setup-step-3.html

Im at a step to use

     aws quicksight register-user --aws-account-id XXXXXXXXX --namespace 
     default --identity-type IAM --iam-arn 
     "arn:aws:iam::XXXXXXXXX:role/qsembed" --user-role READER --session-name 
     "XXXXXXXXX@XXXXXXXXX.com" --email XXXXXXXXX@XXXXXXXXX .com --region ap- southeast-1

however I get hit with

"An error occurred (AccessDeniedException) when calling the RegisterUser operation: You are in ap-southeast-1, but your directory region is us-east-1. Please use us-east-1 as region. "

the quicksight and main AWS accounts are both on singapore (ap-southeast-1). No documentation seems to solve this problem

Help would be very much appreciated

2 Answers

Quicksight maintains user register in one region and analysis and dashboard can be created in different regions. As the error message says you have to use --region us-east-1.

There is a little difference between default region and the region you are in

By default us-east-1 aka N. Virginia for quicksight is default main region, so when you are trying to access quicksight account settings, it says you should switch to the N. Virginia region to get access and modify settings

And requests like create_namespace, register_user should be run in the default region us-east-1

Related