REGION UNSUPPORTED, I can not connect to a EC2 instance because the Region (eu-spain) is not supported for IAM instance profile

0

I can not connect to a EC2 instance because the Region (eu-spain) is not supported for IAM instance profile, how can I do? thanks Octavio

This is the message that shows

this is the question, do not allow me to connect

3 Answers
0

Hello.

Basically, IAM-related stuff is available in all regions, but what exactly did you try to do that failed?
https://docs.aws.amazon.com/general/latest/gr/iam-service.html

profile picture
EXPERT
answered 8 months ago
  • I have created an EC2 using the Spain region on my AWS account. In doing so, we were able to confirm that we could connect to EC2 with Session Manager using an instance profile.

0

Hi, from your error message, you seem to be logging into your account via AWS IAM Identity Center (IIC)

See list on page: https://docs.aws.amazon.com/general/latest/gr/sso.html

Spain is not in it.

So, you will have to obtain another direct login to this account or work temporarily in another account with direct access if you want to keep working in the region eu-spain.

Re AWS IIC: see https://aws.amazon.com/iam/identity-center/

Didier

profile pictureAWS
EXPERT
answered 8 months ago
0

Updated image confirmed.
The first image is an IAM Identity Center issue, so I don't think it has anything to do with EC2 instance profiles.
https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html

Are instance profiles configured when launching EC2?
Also, do you have AmazonSSMMManagedInstanceCore set for the IAM role you are using for the instance profile?
Otherwise, if EC2 is running on a private subnet, it is necessary to configure a NAT Gateway or Systems Manager VPC endpoint.
https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AmazonSSMManagedInstanceCore.html

profile picture
EXPERT
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions