How do I enable SSH for my AWS-EB instance?

0 votes

I have a working AWS Elastic Beanstalk instance with an attached RDS database and want to enable SSH from my development machine. What's the best way to do that? Specifically,

  • can I do it from the AWS Console and

  • will I be able to preserve all of the my current EB settings and structure?

I tired eb ssh --setup but got an error

ERROR: Updating Auto Scaling launch configuration failed Reason: API: autoscaling:CreateLaunchConfiguration User: arn:aws:iam::123456789123:user/myiamusername is not authorized to perform: iam:PassRole on resource: arn:aws:iam:: 123456789123:role/aws-elasticbeanstalk-ec2-role

and am not sure how to proceed.

What's the best way to add SSH access to my existing AWS-EB instance?

Oct 9, 2018 in AWS by datageek
• 2,440 points
61 views

1 answer to this question.

0 votes

Using the EB CLI to do eb ssh --setup is the most straightforward way. But it will require you to have permissions to pass roles, and access ec2 security groups.

In order to add ssh to any environment, all you need to do is assign an ssh keypair to the environment. If you already have an ec2 keypair setup, then you can make this assignment using the Elastic Beanstalk Web console. Otherwise, you will have to create a keypair first.

Hope this helped.

answered Oct 9, 2018 by Archana
• 4,090 points

Related Questions In AWS

+1 vote
2 answers

How do I get my AWS Glue client in JAVA?

Hey, you've been using a correct code ...READ MORE

answered Apr 17, 2018 in AWS by Cloud gunner
• 4,280 points
1,036 views
+1 vote
2 answers

How do I run python script on aws EC2 instance(ubuntu)?

I believe that you are using the ...READ MORE

answered Apr 17, 2018 in AWS by Cloud gunner
• 4,280 points
2,415 views
0 votes
2 answers

How do I define the principal for an AWS policy statement?

Check with AWS Policy Documentations once, rest ...READ MORE

answered Jun 25, 2018 in AWS by Cloud gunner
• 4,280 points

edited Jun 26, 2018 by Cloud gunner 112 views
0 votes
1 answer

How can I just increase the size of my root disk on AWS EC2 for use with Elastic Beanstalk?

This can be done using the following ...READ MORE

answered Nov 12, 2018 in AWS by Archana
• 5,560 points
244 views
0 votes
1 answer

How do I use AWS sdk definitions for TypeScript?

Hey, slight modification with what you have ...READ MORE

answered Dec 3, 2018 in AWS by Archana
• 5,560 points
426 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do i manage firewall settings for my instance in Lightsail?

Yes. You can control the data traffic ...READ MORE

answered Sep 12, 2018 in AWS by Archana
• 4,090 points
218 views
0 votes
1 answer

How do I add python libraries to an AWS lambda function for Alexa?

As it is described in the Amazon ...READ MORE

answered Oct 23, 2018 in AWS by Archana
• 4,090 points
731 views