How to start an instance from another instance

0

Our private AWS console is down but I have access to running servers via SSH. I would like to start another instance from my running instance but I get AuthFailure because I don't have access to the access_key and secrect_access_key for the instance that is down. How can I get around this? Thank you

2개 답변
0

Hello.
Are IAM roles set up to operate the instance on the EC2 to which you are connected via SSH?
Or do you have an access key issued by an IAM user who can operate the EC2 instance?

If you have an access key, use the command "aws configure" to set the access key.
https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html

Once the access key is set, you can use the following AWS CLI command to start EC2.
If an IAM role with the authority to operate the instance is attached to the EC2 connected via SSH, setting an access key is not necessary.

aws ec2 start-instances --instance-ids EC2 ID
profile picture
전문가
답변함 9달 전
profile pictureAWS
전문가
검토됨 9달 전
0

I don't have the credentials for the instance that is down. I'm trying to start the down instances from an instances that is running, 2 different accounts.

답변함 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠