3 Answers
- Newest
- Most votes
- Most comments
0
Hi,
You can utilize AWS Lambda , AWS Systems Manager and AWS Secrets manger to automate the rotation of AWS SSH keys of an EC2 instance. here is an example blog for the solution https://aws.amazon.com/blogs/security/how-to-use-aws-secrets-manager-securely-store-rotate-ssh-key-pairs/
Thanks, Abhishek
answered 8 months ago
0
From your question i thought your are running a Postgres Database on an EC2 instance. If you are using AWS RDS managed service and would like to rotate the database login credentials. You can utilize the Secrets Manger here is the blog for the solution .
answered 8 months ago
0
If you are running RDS then there is no underlying EC2 for you to manage. Therefore there is no PEM file to rotate.
Relevant content
- asked a year ago
- asked 14 days ago
- asked 5 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 9 months ago
Thanks Abhishek for the response.
This is a generic solution of rotating the pem file of EC2. I am specifically looking for EC2 behind RDS database as we need to make sure this will not cause production downtime.