2 Answers
- Newest
- Most votes
- Most comments
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
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.
answered a year ago
Relevant content
- asked a year ago
- asked a year ago
- asked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 15 days ago
Can you access the AWS account where the powered off EC2 resides? If this is possible, create an IAM user and issue an access key.
Or create a cross-account IAM role and set it up on EC2. https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html
If neither of the above actions is possible, EC2 cannot be started.
@Riku_Kobayashi I will try your answer, thank you