Reputation: 133
I have a AWS account with the administrator permissions and I want to install the SSM agent without logging in to an EC2 instance. Is there a way for it?
Upvotes: 0
Views: 1904
Reputation: 3624
Having Admin rights to the console does not automatically give you access to the instances. The instances have a KeyPair selected when launched - this KeyPair has a private key that you use to initially log in to an instance. If this still works on your instances depends on how they have been configured and whatever defaults the AMI your servers are based on.
Basically if the instance already exists you will need to login either manually or via script (using SSH or PowerShell) and perform the manual installation steps to setup ssm agent.
NOTE: The KeyPair private key is generated and shown(only once) when the KeyPair is first created, its not possible to get the private key for an existing KeyPair.
If you have a lot of machines to you could use the AWS CLI or API and script retrieving the instance details and executing your script on each of them.
Upvotes: 0