Rotate Key Pair
A 3-step recipe with Amazon EC2. We can help you get access.
Recipe · 3 steps
Rotate Key Pair
with Amazon EC2
Replace an existing SSH key pair with a freshly created one.
- Confirm the existing key pair is present before rotating.
- Create the replacement key pair.
- Delete the retired key pair now that its replacement exists.
What you'll need to have ready
- oldKeyName: The name of the existing key pair to retire.
- newKeyName: The name for the replacement key pair.
For your developer
Arazzo workflow amazon-ec2:rotate-key-pair, 3 operations: DescribeKeyPairs → CreateKeyPair → DeleteKeyPair. Specs on APIs.io.