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.
I guess I could add jam:PassRole
to the user (if I could figure out which policy that corresponds to in the AWS Console's list of templates), or I could add a new user and switch to that for SSH setup and perhaps access (if I knew how to do that) or I could use my root user on the AWS console to add SSH support (if that's possible; but even if it is, I don't see how). I'm not sure which, if any of these, is the best approach; or how to accomplish any of them?
What's the best way to add SSH access to my existing AWS-EB instance?